fnp
/
fnpeditor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
84eba72
)
Missing semicolons
author
Aleksander Łukasz
<aleksander.lukasz@nowoczesnapolska.org.pl>
Sun, 30 Jun 2013 21:41:03 +0000
(23:41 +0200)
committer
Aleksander Łukasz
<aleksander.lukasz@nowoczesnapolska.org.pl>
Sun, 30 Jun 2013 21:41:03 +0000
(23:41 +0200)
24 files changed:
modules/data/data.js
patch
|
blob
|
history
modules/data/saveDialog.js
patch
|
blob
|
history
modules/diffViewer/diffViewer.js
patch
|
blob
|
history
modules/documentCanvas/canvas.js
patch
|
blob
|
history
modules/documentCanvas/canvasManager.js
patch
|
blob
|
history
modules/documentCanvas/canvasNode.js
patch
|
blob
|
history
modules/documentCanvas/documentCanvas.js
patch
|
blob
|
history
modules/documentCanvas/tests/canvas.test.js
patch
|
blob
|
history
modules/documentCanvas/tests/canvasNode.test.js
patch
|
blob
|
history
modules/documentCanvas/tests/utils.js
patch
|
blob
|
history
modules/documentCanvas/tests/utils.test.js
patch
|
blob
|
history
modules/documentCanvas/transformations.js
patch
|
blob
|
history
modules/documentHistory/documentHistory.js
patch
|
blob
|
history
modules/documentHistory/restoreDialog.js
patch
|
blob
|
history
modules/documentToolbar/documentToolbar.js
patch
|
blob
|
history
modules/indicator/indicator.js
patch
|
blob
|
history
modules/mainBar/mainBar.js
patch
|
blob
|
history
modules/metadataEditor/metadataEditor.js
patch
|
blob
|
history
modules/metadataEditor/transformations.js
patch
|
blob
|
history
modules/nodeBreadCrumbs/nodeBreadCrumbs.js
patch
|
blob
|
history
modules/nodeFamilyTree/nodeFamilyTree.js
patch
|
blob
|
history
modules/nodePane/nodePane.js
patch
|
blob
|
history
modules/rng/rng.js
patch
|
blob
|
history
modules/sourceEditor/sourceEditor.js
patch
|
blob
|
history
diff --git
a/modules/data/data.js
b/modules/data/data.js
index
108f2ea
..
51a4398
100644
(file)
--- a/
modules/data/data.js
+++ b/
modules/data/data.js
@@
-6,7
+6,7
@@
return function(sandbox) {
\r
var doc = sandbox.getBootstrappedData().document;
\r
var document_id = sandbox.getBootstrappedData().document_id;
\r
\r
var doc = sandbox.getBootstrappedData().document;
\r
var document_id = sandbox.getBootstrappedData().document_id;
\r
- var document_version = sandbox.getBootstrappedData().version
\r
+ var document_version = sandbox.getBootstrappedData().version
;
\r
var history = sandbox.getBootstrappedData().history;
\r
\r
\r
var history = sandbox.getBootstrappedData().history;
\r
\r
\r
@@
-53,7
+53,7
@@
return function(sandbox) {
sandbox.publish('historyItemAdded', data.slice(-1)[0]);
\r
},
\r
});
\r
sandbox.publish('historyItemAdded', data.slice(-1)[0]);
\r
},
\r
});
\r
- }
\r
+ }
;
\r
\r
return {
\r
start: function() {
\r
\r
return {
\r
start: function() {
\r
@@
-100,7
+100,7
@@
return function(sandbox) {
url: '/' + gettext('editor') + '/' + document_id + '/diff',
\r
data: {from: ver1, to: ver2},
\r
success: function(data) {
\r
url: '/' + gettext('editor') + '/' + document_id + '/diff',
\r
data: {from: ver1, to: ver2},
\r
success: function(data) {
\r
- sandbox.publish('diffFetched', {table: data, ver1: ver1, ver2: ver2})
\r
+ sandbox.publish('diffFetched', {table: data, ver1: ver1, ver2: ver2})
;
\r
},
\r
});
\r
},
\r
},
\r
});
\r
},
\r
@@
-127,7
+127,7
@@
return function(sandbox) {
getDocumentVersion: function() {
\r
return document_version;
\r
}
\r
getDocumentVersion: function() {
\r
return document_version;
\r
}
\r
- }
\r
+ }
;
\r
};
\r
\r
});
\ No newline at end of file
};
\r
\r
});
\ No newline at end of file
diff --git
a/modules/data/saveDialog.js
b/modules/data/saveDialog.js
index
2108276
..
0bdb718
100644
(file)
--- a/
modules/data/saveDialog.js
+++ b/
modules/data/saveDialog.js
@@
-30,7
+30,7
@@
define([
data: {description: view.$el.find('textarea').val()},
\r
success: function() { view.actionsDisabled = false; view.close(); },
\r
error: function() { view.actionsDisabled = false; view.close(); },
\r
data: {description: view.$el.find('textarea').val()},
\r
success: function() { view.actionsDisabled = false; view.close(); },
\r
error: function() { view.actionsDisabled = false; view.close(); },
\r
- })
\r
+ })
;
\r
},
\r
close: function(e) {
\r
if(e)
\r
},
\r
close: function(e) {
\r
if(e)
\r
@@
-51,6
+51,6
@@
define([
create: function() {
\r
return new DialogView();
\r
}
\r
create: function() {
\r
return new DialogView();
\r
}
\r
- }
\r
+ }
;
\r
\r
});
\ No newline at end of file
\r
});
\ No newline at end of file
diff --git
a/modules/diffViewer/diffViewer.js
b/modules/diffViewer/diffViewer.js
index
ba88a48
..
12e022a
100644
(file)
--- a/
modules/diffViewer/diffViewer.js
+++ b/
modules/diffViewer/diffViewer.js
@@
-14,11
+14,12
@@
return function(sandbox) {
dom.append(tabsView.getAsView());
\r
\r
var DiffView = function() {
\r
dom.append(tabsView.getAsView());
\r
\r
var DiffView = function() {
\r
- this.dom = $(diffTemplateSrc)
\r
- }
\r
+ this.dom = $(diffTemplateSrc);
\r
+ };
\r
+
\r
DiffView.prototype.setTable = function(table) {
\r
this.dom.append(table);
\r
DiffView.prototype.setTable = function(table) {
\r
this.dom.append(table);
\r
- }
\r
+ }
;
\r
\r
\r
return {
\r
\r
\r
return {
\r
diff --git
a/modules/documentCanvas/canvas.js
b/modules/documentCanvas/canvas.js
index
23cdf0a
..
94329a4
100644
(file)
--- a/
modules/documentCanvas/canvas.js
+++ b/
modules/documentCanvas/canvas.js
@@
-44,7
+44,7
@@
Canvas.prototype.findNodes = function(desc) {
\r
Canvas.prototype.getNodeById = function(id) {
\r
return canvasNode.create($(this.content.find('#' +id)));
\r
\r
Canvas.prototype.getNodeById = function(id) {
\r
return canvasNode.create($(this.content.find('#' +id)));
\r
-}
\r
+}
;
\r
\r
Canvas.prototype.nodeAppend = function(options) {
\r
var element; // = $(this.content.find('#' + options.context.id).get(0));
\r
\r
Canvas.prototype.nodeAppend = function(options) {
\r
var element; // = $(this.content.find('#' + options.context.id).get(0));
\r
@@
-129,7
+129,7
@@
Canvas.prototype.nodeSplit = function(options) {
var newNode = canvasNode.create({tag: nodeToSplit.attr('wlxml-tag'), klass: nodeToSplit.attr('wlxml-class')});
\r
newNode.dom.append(suffix);
\r
succeedingNodes.forEach(function(node) {
\r
var newNode = canvasNode.create({tag: nodeToSplit.attr('wlxml-tag'), klass: nodeToSplit.attr('wlxml-class')});
\r
newNode.dom.append(suffix);
\r
succeedingNodes.forEach(function(node) {
\r
- newNode.dom.append(node)
\r
+ newNode.dom.append(node)
;
\r
});
\r
nodeToSplit.after(newNode.dom);
\r
return newNode;
\r
});
\r
nodeToSplit.after(newNode.dom);
\r
return newNode;
\r
@@
-222,7
+222,7
@@
Canvas.prototype.listRemove = function(options) {
\r
Canvas.prototype.getPrecedingNode = function(options) {
\r
var element = $(this.content.find('#' + options.node.getId()).get(0));
\r
\r
Canvas.prototype.getPrecedingNode = function(options) {
\r
var element = $(this.content.find('#' + options.node.getId()).get(0));
\r
- var prev = element.prev()
\r
+ var prev = element.prev()
;
\r
if(prev.length === 0)
\r
prev = element.parent();
\r
return canvasNode.create(prev);
\r
if(prev.length === 0)
\r
prev = element.parent();
\r
return canvasNode.create(prev);
\r
diff --git
a/modules/documentCanvas/canvasManager.js
b/modules/documentCanvas/canvasManager.js
index
201394e
..
87fa834
100644
(file)
--- a/
modules/documentCanvas/canvasManager.js
+++ b/
modules/documentCanvas/canvasManager.js
@@
-16,7
+16,7
@@
var getCursorPosition = function() {
parentNode: parent,
\r
focusNode: $(selection.focusNode).parent(),
\r
isAtEnd: selection.anchorOffset === anchorNode.text().length
\r
parentNode: parent,
\r
focusNode: $(selection.focusNode).parent(),
\r
isAtEnd: selection.anchorOffset === anchorNode.text().length
\r
- }
\r
+ }
;
\r
};
\r
\r
var Manager = function(canvas, sandbox) {
\r
};
\r
\r
var Manager = function(canvas, sandbox) {
\r
@@
-76,12
+76,12
@@
var Manager = function(canvas, sandbox) {
};
\r
canvas.dom.onHide = function() {
\r
manager.scrollbarPosition = canvas.dom.find('#rng-module-documentCanvas-contentWrapper').scrollTop();
\r
};
\r
canvas.dom.onHide = function() {
\r
manager.scrollbarPosition = canvas.dom.find('#rng-module-documentCanvas-contentWrapper').scrollTop();
\r
- }
\r
+ }
;
\r
};
\r
\r
Manager.prototype.selectNode = function(cnode, options) {
\r
options = options || {};
\r
};
\r
\r
Manager.prototype.selectNode = function(cnode, options) {
\r
options = options || {};
\r
- var nodeElement = this.getNodeElement(cnode)
\r
+ var nodeElement = this.getNodeElement(cnode)
;
\r
\r
this.dimNode(cnode);
\r
\r
\r
this.dimNode(cnode);
\r
\r
@@
-135,7
+135,7
@@
Manager.prototype.insertNewNode = function(wlxmlTag, wlxmlClass) {
}
\r
\r
\r
}
\r
\r
\r
-}
\r
+}
;
\r
\r
Manager.prototype.getNodeElement = function(cnode) {
\r
return this.canvas.dom.find('#'+cnode.getId());
\r
\r
Manager.prototype.getNodeElement = function(cnode) {
\r
return this.canvas.dom.find('#'+cnode.getId());
\r
@@
-167,9
+167,9
@@
Manager.prototype.selectFirstNode = function() {
}).first();
\r
var node;
\r
if(firstNodeWithText.length)
\r
}).first();
\r
var node;
\r
if(firstNodeWithText.length)
\r
- node = $(firstNodeWithText[0])
\r
+ node = $(firstNodeWithText[0])
;
\r
else {
\r
else {
\r
- node = this.canvas.dom.find('[wlxml-class|="p"]')
\r
+ node = this.canvas.dom.find('[wlxml-class|="p"]')
;
\r
}
\r
this.selectNode(canvasNode.create(node), {movecaret: true});
\r
};
\r
}
\r
this.selectNode(canvasNode.create(node), {movecaret: true});
\r
};
\r
@@
-185,7
+185,7
@@
Manager.prototype.movecaretToNode = function(nodeElement, where) {
collapseArg = false;
\r
range.collapse(collapseArg);
\r
var selection = document.getSelection();
\r
collapseArg = false;
\r
range.collapse(collapseArg);
\r
var selection = document.getSelection();
\r
- selection.removeAllRanges()
\r
+ selection.removeAllRanges()
;
\r
selection.addRange(range);
\r
};
\r
\r
selection.addRange(range);
\r
};
\r
\r
@@
-226,7
+226,7
@@
Manager.prototype.onBackspaceKey = function(e) {
this.canvas.nodeRemove({node: toRemove}); // jesli nie ma tekstu, to anchor nie jest tex nodem
\r
this.selectNode(prevNode, {movecaret: 'end'});
\r
}
\r
this.canvas.nodeRemove({node: toRemove}); // jesli nie ma tekstu, to anchor nie jest tex nodem
\r
this.selectNode(prevNode, {movecaret: 'end'});
\r
}
\r
-}
\r
+}
;
\r
\r
Manager.prototype.command = function(command, meta) {
\r
var pos = getCursorPosition();
\r
\r
Manager.prototype.command = function(command, meta) {
\r
var pos = getCursorPosition();
\r
@@
-247,7
+247,7
@@
Manager.prototype.command = function(command, meta) {
}
\r
}
\r
\r
}
\r
}
\r
\r
-}
\r
+}
;
\r
\r
\r
return Manager;
\r
\r
\r
return Manager;
\r
diff --git
a/modules/documentCanvas/canvasNode.js
b/modules/documentCanvas/canvasNode.js
index
d0e54ff
..
321a7ce
100644
(file)
--- a/
modules/documentCanvas/canvasNode.js
+++ b/
modules/documentCanvas/canvasNode.js
@@
-26,27
+26,27
@@
var CanvasNode = function(desc) {
\r
CanvasNode.prototype.getTag = function() {
\r
return this.dom.attr('wlxml-tag');
\r
\r
CanvasNode.prototype.getTag = function() {
\r
return this.dom.attr('wlxml-tag');
\r
-}
\r
+}
;
\r
\r
CanvasNode.prototype.getClass = function() {
\r
return this.dom.attr('wlxml-class');
\r
\r
CanvasNode.prototype.getClass = function() {
\r
return this.dom.attr('wlxml-class');
\r
-}
\r
+}
;
\r
\r
CanvasNode.prototype.getId = function() {
\r
return this.dom.attr('id');
\r
\r
CanvasNode.prototype.getId = function() {
\r
return this.dom.attr('id');
\r
-}
\r
+}
;
\r
\r
CanvasNode.prototype.getContent = function() {
\r
return this.dom.text();
\r
\r
CanvasNode.prototype.getContent = function() {
\r
return this.dom.text();
\r
-}
\r
+}
;
\r
\r
CanvasNode.prototype.setContent = function(content) {
\r
this.dom.text(content);
\r
\r
CanvasNode.prototype.setContent = function(content) {
\r
this.dom.text(content);
\r
-}
\r
+}
;
\r
\r
CanvasNode.prototype.isSame = function(other) {
\r
return (other instanceof CanvasNode) && this.dom.get(0) === other.dom.get(0);
\r
\r
CanvasNode.prototype.isSame = function(other) {
\r
return (other instanceof CanvasNode) && this.dom.get(0) === other.dom.get(0);
\r
-}
\r
+}
;
\r
\r
CanvasNode.prototype.children = function() {
\r
var list = [];
\r
\r
CanvasNode.prototype.children = function() {
\r
var list = [];
\r
@@
-75,14
+75,14
@@
CanvasNode.prototype.parents = function() {
\r
CanvasNode.prototype.isOfClass = function(klass) {
\r
return this.getClass() && this.getClass().substr(0, klass.length) === klass;
\r
\r
CanvasNode.prototype.isOfClass = function(klass) {
\r
return this.getClass() && this.getClass().substr(0, klass.length) === klass;
\r
-}
\r
+}
;
\r
\r
return {
\r
create: function(desc) {
\r
return new CanvasNode(desc);
\r
}
\r
\r
\r
return {
\r
create: function(desc) {
\r
return new CanvasNode(desc);
\r
}
\r
\r
-}
\r
+}
;
\r
\r
\r
});
\ No newline at end of file
\r
\r
});
\ No newline at end of file
diff --git
a/modules/documentCanvas/documentCanvas.js
b/modules/documentCanvas/documentCanvas.js
index
4ca0a4d
..
37e8377
100644
(file)
--- a/
modules/documentCanvas/documentCanvas.js
+++ b/
modules/documentCanvas/documentCanvas.js
@@
-25,7
+25,7
@@
return function(sandbox) {
sandbox.publish('documentSet');
\r
},
\r
getDocument: function() {
\r
sandbox.publish('documentSet');
\r
},
\r
getDocument: function() {
\r
- return transformations.toXML.getXML(canvas.getContent())
\r
+ return transformations.toXML.getXML(canvas.getContent())
;
\r
},
\r
modifyCurrentNode: function(attr, value) {
\r
if(manager.currentNode) {
\r
},
\r
modifyCurrentNode: function(attr, value) {
\r
if(manager.currentNode) {
\r
@@
-52,7
+52,7
@@
return function(sandbox) {
command: function(command, meta) {
\r
manager.command(command, meta);
\r
}
\r
command: function(command, meta) {
\r
manager.command(command, meta);
\r
}
\r
- }
\r
+ }
;
\r
\r
};
\r
\r
\r
};
\r
\r
diff --git
a/modules/documentCanvas/tests/canvas.test.js
b/modules/documentCanvas/tests/canvas.test.js
index
12fb8a5
..
ac3e69a
100644
(file)
--- a/
modules/documentCanvas/tests/canvas.test.js
+++ b/
modules/documentCanvas/tests/canvas.test.js
@@
-57,7
+57,7
@@
define([
var c = canvas.create('<div wlxml-tag="section"><div wlxml-tag="header">Header 1</div></div>');
\r
var header = c.findNodes({tag: 'header'})[0];
\r
var wrapper = canvasNode.create({tag: 'aside'});
\r
var c = canvas.create('<div wlxml-tag="section"><div wlxml-tag="header">Header 1</div></div>');
\r
var header = c.findNodes({tag: 'header'})[0];
\r
var wrapper = canvasNode.create({tag: 'aside'});
\r
- c.nodeWrap({inside: header, _with: wrapper, offsetStart: 1, offsetEnd: 6})
\r
+ c.nodeWrap({inside: header, _with: wrapper, offsetStart: 1, offsetEnd: 6})
;
\r
assertDomEqual(c.getContent(), '<div wlxml-tag="section"><div wlxml-tag="header">H<span wlxml-tag="aside">eader</span> 1</div></div>');
\r
});
\r
\r
assertDomEqual(c.getContent(), '<div wlxml-tag="section"><div wlxml-tag="header">H<span wlxml-tag="aside">eader</span> 1</div></div>');
\r
});
\r
\r
@@
-73,7
+73,7
@@
define([
var c = canvas.create('<div wlxml-tag="header">Alice has a <span wlxml-tag="span">small</span> cat</div>');
\r
var header = c.findNodes({tag: 'header'})[0];
\r
var wrapper = canvasNode.create({tag: 'aside'});
\r
var c = canvas.create('<div wlxml-tag="header">Alice has a <span wlxml-tag="span">small</span> cat</div>');
\r
var header = c.findNodes({tag: 'header'})[0];
\r
var wrapper = canvasNode.create({tag: 'aside'});
\r
- c.nodeWrap({inside: header, _with: wrapper, offsetStart: 6, offsetEnd: 4, textNodeIdx: [0,2]})
\r
+ c.nodeWrap({inside: header, _with: wrapper, offsetStart: 6, offsetEnd: 4, textNodeIdx: [0,2]})
;
\r
assertDomEqual(c.getContent(), '<div wlxml-tag="header">Alice <span wlxml-tag="aside">has a <span wlxml-tag="span">small</span> cat</span></div>');
\r
});
\r
\r
assertDomEqual(c.getContent(), '<div wlxml-tag="header">Alice <span wlxml-tag="aside">has a <span wlxml-tag="span">small</span> cat</span></div>');
\r
});
\r
\r
diff --git
a/modules/documentCanvas/tests/canvasNode.test.js
b/modules/documentCanvas/tests/canvasNode.test.js
index
5c55d9c
..
f9507d9
100644
(file)
--- a/
modules/documentCanvas/tests/canvasNode.test.js
+++ b/
modules/documentCanvas/tests/canvasNode.test.js
@@
-14,7
+14,7
@@
var assertDomEqual = function(lhs, rhs) {
rhs.attr('id', '');
\r
return assert.ok(lhs[0].isEqualNode(rhs[0]), 'nodes are equal');
\r
\r
rhs.attr('id', '');
\r
return assert.ok(lhs[0].isEqualNode(rhs[0]), 'nodes are equal');
\r
\r
-}
\r
+}
;
\r
\r
suite('Create canvas node', function() {
\r
test('from description', function() {
\r
\r
suite('Create canvas node', function() {
\r
test('from description', function() {
\r
diff --git
a/modules/documentCanvas/tests/utils.js
b/modules/documentCanvas/tests/utils.js
index
cf1f7c2
..
93d4c03
100644
(file)
--- a/
modules/documentCanvas/tests/utils.js
+++ b/
modules/documentCanvas/tests/utils.js
@@
-10,7
+10,7
@@
define(['libs/jquery-1.9.1.min', 'libs/chai'], function($, chai) {
rmws(this);
\r
});
\r
}
\r
rmws(this);
\r
});
\r
}
\r
- }
\r
+ }
;
\r
\r
xml = $($.trim(xml));
\r
xml.each(function() {
\r
\r
xml = $($.trim(xml));
\r
xml.each(function() {
\r
@@
-45,5
+45,5
@@
define(['libs/jquery-1.9.1.min', 'libs/chai'], function($, chai) {
rhs.find('*').each(function() {$(this).attr('id', '');});
\r
return chai.assert.ok(lhs[0].isEqualNode(rhs[0]), 'nodes are equal');
\r
}
\r
rhs.find('*').each(function() {$(this).attr('id', '');});
\r
return chai.assert.ok(lhs[0].isEqualNode(rhs[0]), 'nodes are equal');
\r
}
\r
- }
\r
+ }
;
\r
});
\ No newline at end of file
});
\ No newline at end of file
diff --git
a/modules/documentCanvas/tests/utils.test.js
b/modules/documentCanvas/tests/utils.test.js
index
d25b3d3
..
7001359
100644
(file)
--- a/
modules/documentCanvas/tests/utils.test.js
+++ b/
modules/documentCanvas/tests/utils.test.js
@@
-5,22
+5,22
@@
var assert = chai.assert;
\r
test('open+open', function() {
\r
assert.equal(utils.cleanUp('<div class="class"> \n <div class="class"></div></div>'), '<div class="class"><div class="class"></div></div>');
\r
\r
test('open+open', function() {
\r
assert.equal(utils.cleanUp('<div class="class"> \n <div class="class"></div></div>'), '<div class="class"><div class="class"></div></div>');
\r
-})
\r
+})
;
\r
\r
test('close+close', function() {
\r
assert.equal(utils.cleanUp('<div><div></div>\n </div>'), '<div><div></div></div>');
\r
\r
test('close+close', function() {
\r
assert.equal(utils.cleanUp('<div><div></div>\n </div>'), '<div><div></div></div>');
\r
-})
\r
+})
;
\r
\r
test('close+open', function() {
\r
assert.equal(utils.cleanUp('<div></div>\n <div class="class"></div>'), '<div></div><div class="class"></div>');
\r
\r
test('close+open', function() {
\r
assert.equal(utils.cleanUp('<div></div>\n <div class="class"></div>'), '<div></div><div class="class"></div>');
\r
-})
\r
+})
;
\r
\r
test('bug', function() {
\r
var txt = '\
\r
<section> \
\r
<header class="some.class">Head</header>\
\r
<header class="some.class">er 1</header>\
\r
\r
test('bug', function() {
\r
var txt = '\
\r
<section> \
\r
<header class="some.class">Head</header>\
\r
<header class="some.class">er 1</header>\
\r
- </section>'
\r
+ </section>'
;
\r
var txt2 = '<section><header class="some.class">Head</header><header class="some.class">er 1</header></section>';
\r
assert.equal(utils.cleanUp(txt), txt2);
\r
});
\r
var txt2 = '<section><header class="some.class">Head</header><header class="some.class">er 1</header></section>';
\r
assert.equal(utils.cleanUp(txt), txt2);
\r
});
\r
diff --git
a/modules/documentCanvas/transformations.js
b/modules/documentCanvas/transformations.js
index
2b5a5eb
..
79c28b6
100644
(file)
--- a/
modules/documentCanvas/transformations.js
+++ b/
modules/documentCanvas/transformations.js
@@
-26,19
+26,19
@@
define(['libs/jquery-1.9.1.min'], function($) {
for(var i = 0; i < this.attributes.length; i++) {
\r
var attr = this.attributes.item(i);
\r
var value = attr.name === 'class' ? attr.value.replace(/\./g, '-') : attr.value;
\r
for(var i = 0; i < this.attributes.length; i++) {
\r
var attr = this.attributes.item(i);
\r
var value = attr.name === 'class' ? attr.value.replace(/\./g, '-') : attr.value;
\r
- toret.attr('wlxml-' + attr.name, value)
\r
+ toret.attr('wlxml-' + attr.name, value)
;
\r
}
\r
toret.append(currentTag.contents());
\r
return toret;
\r
});
\r
});
\r
}
\r
toret.append(currentTag.contents());
\r
return toret;
\r
});
\r
});
\r
- }
\r
+ }
;
\r
\r
transform(toBlock, 'div');
\r
transform(toInline, 'span');
\r
\r
toret.find(":not(iframe)").addBack().contents().filter(function() {
\r
\r
transform(toBlock, 'div');
\r
transform(toInline, 'span');
\r
\r
toret.find(":not(iframe)").addBack().contents().filter(function() {
\r
- return this.nodeType == 3} ).each(function() {
\r
+ return this.nodeType == 3
;
} ).each(function() {
\r
var n = $(this);
\r
var hasText = /\S/g.test(n.text());
\r
if(!hasText) {
\r
var n = $(this);
\r
var hasText = /\S/g.test(n.text());
\r
if(!hasText) {
\r
@@
-58,16
+58,16
@@
define(['libs/jquery-1.9.1.min'], function($) {
$(xml).find('metadata').children().each(function() {
\r
var node = $(this);
\r
toret[this.nodeName.split(':')[1].toLowerCase()] = node.text();
\r
$(xml).find('metadata').children().each(function() {
\r
var node = $(this);
\r
toret[this.nodeName.split(':')[1].toLowerCase()] = node.text();
\r
- })
\r
+ })
;
\r
return toret;
\r
},
\r
getDocumentDescription: function(xml) {
\r
return {
\r
HTMLTree: this.getHTMLTree(xml),
\r
metadata: this.getMetaData(xml)
\r
return toret;
\r
},
\r
getDocumentDescription: function(xml) {
\r
return {
\r
HTMLTree: this.getHTMLTree(xml),
\r
metadata: this.getMetaData(xml)
\r
- }
\r
+ }
;
\r
}
\r
}
\r
- }
\r
+ }
;
\r
\r
transformations.toXML = {
\r
getXML: function(body) {
\r
\r
transformations.toXML = {
\r
getXML: function(body) {
\r
@@
-83,7
+83,7
@@
define(['libs/jquery-1.9.1.min'], function($) {
\r
for(var i = 0; i < this.attributes.length; i++) {
\r
var attr = this.attributes.item(i);
\r
\r
for(var i = 0; i < this.attributes.length; i++) {
\r
var attr = this.attributes.item(i);
\r
- var split = attr.name.split('-')
\r
+ var split = attr.name.split('-')
;
\r
console.log(split);
\r
if(split[0] !== 'wlxml' || (split.length > 1 && split[1] === 'tag'))
\r
continue;
\r
console.log(split);
\r
if(split[0] !== 'wlxml' || (split.length > 1 && split[1] === 'tag'))
\r
continue;
\r
@@
-100,7
+100,7
@@
define(['libs/jquery-1.9.1.min'], function($) {
\r
return vkbeautify.xml(toret.html());
\r
}
\r
\r
return vkbeautify.xml(toret.html());
\r
}
\r
- }
\r
+ }
;
\r
\r
return transformations;
\r
\r
\r
return transformations;
\r
\r
diff --git
a/modules/documentHistory/documentHistory.js
b/modules/documentHistory/documentHistory.js
index
d435617
..
2647ee3
100644
(file)
--- a/
modules/documentHistory/documentHistory.js
+++ b/
modules/documentHistory/documentHistory.js
@@
-13,7
+13,7
@@
return function(sandbox) {
var dom = $(_.template(mainTemplateSrc)());
\r
var domNodes = {
\r
itemList: dom.find('.rng-module-documentHistory-itemsList'),
\r
var dom = $(_.template(mainTemplateSrc)());
\r
var domNodes = {
\r
itemList: dom.find('.rng-module-documentHistory-itemsList'),
\r
- }
\r
+ }
;
\r
var itemViews = [];
\r
\r
\r
var itemViews = [];
\r
\r
\r
@@
-43,18
+43,18
@@
return function(sandbox) {
if(options.animate) {
\r
view.dom.hide().slideDown();
\r
}
\r
if(options.animate) {
\r
view.dom.hide().slideDown();
\r
}
\r
- }
\r
+ }
;
\r
\r
var toggleItemViews = function(toggle) {
\r
itemViews.forEach(function(view) {
\r
if(!historyItems.isSelected(view.item))
\r
view.toggle(toggle);
\r
});
\r
\r
var toggleItemViews = function(toggle) {
\r
itemViews.forEach(function(view) {
\r
if(!historyItems.isSelected(view.item))
\r
view.toggle(toggle);
\r
});
\r
- }
\r
+ }
;
\r
\r
var toggleButton = function(btn, toggle) {
\r
dom.find('button.'+btn).toggleClass('disabled', !toggle);
\r
\r
var toggleButton = function(btn, toggle) {
\r
dom.find('button.'+btn).toggleClass('disabled', !toggle);
\r
- }
\r
+ }
;
\r
\r
var historyItems = {
\r
_itemsById: {},
\r
\r
var historyItems = {
\r
_itemsById: {},
\r
@@
-140,7
+140,7
@@
return function(sandbox) {
getView: function() {
\r
return dom;
\r
}
\r
getView: function() {
\r
return dom;
\r
}
\r
- }
\r
-}
\r
+ }
;
\r
+}
;
\r
\r
});
\ No newline at end of file
\r
});
\ No newline at end of file
diff --git
a/modules/documentHistory/restoreDialog.js
b/modules/documentHistory/restoreDialog.js
index
0110240
..
97ea2af
100644
(file)
--- a/
modules/documentHistory/restoreDialog.js
+++ b/
modules/documentHistory/restoreDialog.js
@@
-29,7
+29,7
@@
define([
data: {description: view.$el.find('textarea').val()},
\r
success: function() { view.actionsDisabled = false; view.close(); },
\r
error: function() { view.actionsDisabled = false; view.close(); },
\r
data: {description: view.$el.find('textarea').val()},
\r
success: function() { view.actionsDisabled = false; view.close(); },
\r
error: function() { view.actionsDisabled = false; view.close(); },
\r
- })
\r
+ })
;
\r
},
\r
close: function(e) {
\r
if(e)
\r
},
\r
close: function(e) {
\r
if(e)
\r
@@
-50,6
+50,6
@@
define([
create: function() {
\r
return new DialogView();
\r
}
\r
create: function() {
\r
return new DialogView();
\r
}
\r
- }
\r
+ }
;
\r
\r
});
\ No newline at end of file
\r
});
\ No newline at end of file
diff --git
a/modules/documentToolbar/documentToolbar.js
b/modules/documentToolbar/documentToolbar.js
index
e364e99
..
a6dd0be
100644
(file)
--- a/
modules/documentToolbar/documentToolbar.js
+++ b/
modules/documentToolbar/documentToolbar.js
@@
-13,7
+13,7
@@
return function(sandbox) {
e.stopPropagation();
\r
var btn = $(e.currentTarget);
\r
if(btn.attr('data-btn-type') === 'toggle') {
\r
e.stopPropagation();
\r
var btn = $(e.currentTarget);
\r
if(btn.attr('data-btn-type') === 'toggle') {
\r
- btn.toggleClass('active')
\r
+ btn.toggleClass('active')
;
\r
var event;
\r
var btnId = btn.attr('data-btn');
\r
if(btnId === 'grid')
\r
var event;
\r
var btnId = btn.attr('data-btn');
\r
if(btnId === 'grid')
\r
@@
-43,7
+43,7
@@
return function(sandbox) {
getOption: function(option) {
\r
return this.node.find('.rng-module-documentToolbar-toolbarOption[data-option=' + option +']').val();
\r
}
\r
getOption: function(option) {
\r
return this.node.find('.rng-module-documentToolbar-toolbarOption[data-option=' + option +']').val();
\r
}
\r
- }
\r
+ }
;
\r
\r
view.setup();
\r
\r
\r
view.setup();
\r
\r
@@
-51,7
+51,7
@@
return function(sandbox) {
start: function() { sandbox.publish('ready'); },
\r
getView: function() { return view.node; },
\r
getOption: function(option) { return view.getOption(option); }
\r
start: function() { sandbox.publish('ready'); },
\r
getView: function() { return view.node; },
\r
getOption: function(option) { return view.getOption(option); }
\r
- }
\r
-}
\r
+ }
;
\r
+}
;
\r
\r
});
\ No newline at end of file
\r
});
\ No newline at end of file
diff --git
a/modules/indicator/indicator.js
b/modules/indicator/indicator.js
index
f395f83
..
007dcff
100644
(file)
--- a/
modules/indicator/indicator.js
+++ b/
modules/indicator/indicator.js
@@
-13,7
+13,7
@@
return function(sandbox) {
setup: function() {
\r
\r
}
\r
setup: function() {
\r
\r
}
\r
- }
\r
+ }
;
\r
\r
return {
\r
start: function() { sandbox.publish('ready'); },
\r
\r
return {
\r
start: function() { sandbox.publish('ready'); },
\r
@@
-28,8
+28,8
@@
return function(sandbox) {
}
\r
}
\r
\r
}
\r
}
\r
\r
- }
\r
+ }
;
\r
\r
\r
-}
\r
+}
;
\r
\r
});
\r
\r
});
\r
diff --git
a/modules/mainBar/mainBar.js
b/modules/mainBar/mainBar.js
index
084f675
..
6966e4a
100644
(file)
--- a/
modules/mainBar/mainBar.js
+++ b/
modules/mainBar/mainBar.js
@@
-11,7
+11,7
@@
return function(sandbox) {
view.find('button').click(function(e) {
\r
e.preventDefault();
\r
sandbox.publish('cmd.' + $(e.target).attr('data-cmd'));
\r
view.find('button').click(function(e) {
\r
e.preventDefault();
\r
sandbox.publish('cmd.' + $(e.target).attr('data-cmd'));
\r
- })
\r
+ })
;
\r
\r
return {
\r
start: function() { sandbox.publish('ready'); },
\r
\r
return {
\r
start: function() { sandbox.publish('ready'); },
\r
@@
-22,7
+22,7
@@
return function(sandbox) {
setVersion: function(version) {
\r
view.find('.version').text(version);
\r
}
\r
setVersion: function(version) {
\r
view.find('.version').text(version);
\r
}
\r
- }
\r
+ }
;
\r
\r
};
\r
\r
\r
};
\r
\r
diff --git
a/modules/metadataEditor/metadataEditor.js
b/modules/metadataEditor/metadataEditor.js
index
79302bb
..
12578ba
100644
(file)
--- a/
modules/metadataEditor/metadataEditor.js
+++ b/
modules/metadataEditor/metadataEditor.js
@@
-35,7
+35,7
@@
return function(sandbox) {
metaTable.find('.rng-module-metadataEditor-metaItemValue').focus();
\r
} else {
\r
var input = $('<input>');
\r
metaTable.find('.rng-module-metadataEditor-metaItemValue').focus();
\r
} else {
\r
var input = $('<input>');
\r
- input.appendTo('body').focus()
\r
+ input.appendTo('body').focus()
;
\r
view.node.find('.rng-module-metadataEditor-addBtn').focus();
\r
input.remove();
\r
}
\r
view.node.find('.rng-module-metadataEditor-addBtn').focus();
\r
input.remove();
\r
}
\r
@@
-47,7
+47,7
@@
return function(sandbox) {
var onKeyUp = function(e) {
\r
if(e.which !== 13)
\r
sandbox.publish('metadataChanged', view.getMetadata());
\r
var onKeyUp = function(e) {
\r
if(e.which !== 13)
\r
sandbox.publish('metadataChanged', view.getMetadata());
\r
- }
\r
+ }
;
\r
this.metaTable.on('keyup', '[contenteditable]', _.throttle(onKeyUp, 500));
\r
},
\r
getMetadata: function() {
\r
this.metaTable.on('keyup', '[contenteditable]', _.throttle(onKeyUp, 500));
\r
},
\r
getMetadata: function() {
\r
@@
-73,7
+73,7
@@
return function(sandbox) {
newRow.appendTo(this.metaTable);
\r
return newRow;
\r
}
\r
newRow.appendTo(this.metaTable);
\r
return newRow;
\r
}
\r
- }
\r
+ }
;
\r
\r
view.setup();
\r
\r
\r
view.setup();
\r
\r
@@
-101,7
+101,7
@@
return function(sandbox) {
var section = toret.find('section');
\r
section = section.length ? $(section[0]) : null;
\r
if(section) {
\r
var section = toret.find('section');
\r
section = section.length ? $(section[0]) : null;
\r
if(section) {
\r
- section.prepend(meta)
\r
+ section.prepend(meta)
;
\r
}
\r
} else {
\r
metadata.replaceWith(meta);
\r
}
\r
} else {
\r
metadata.replaceWith(meta);
\r
@@
-110,6
+110,6
@@
return function(sandbox) {
}
\r
\r
};
\r
}
\r
\r
};
\r
-}
\r
+}
;
\r
\r
});
\ No newline at end of file
\r
});
\ No newline at end of file
diff --git
a/modules/metadataEditor/transformations.js
b/modules/metadataEditor/transformations.js
index
8202a9f
..
ba7092e
100644
(file)
--- a/
modules/metadataEditor/transformations.js
+++ b/
modules/metadataEditor/transformations.js
@@
-8,7
+8,7
@@
define(['libs/jquery-1.9.1.min'], function($) {
$(xml).find('metadata').children().each(function() {
\r
var node = $(this);
\r
toret[this.nodeName.split(':')[1].toLowerCase()] = node.text();
\r
$(xml).find('metadata').children().each(function() {
\r
var node = $(this);
\r
toret[this.nodeName.split(':')[1].toLowerCase()] = node.text();
\r
- })
\r
+ })
;
\r
return toret;
\r
},
\r
getXML: function(metadata) {
\r
return toret;
\r
},
\r
getXML: function(metadata) {
\r
@@
-19,6
+19,6
@@
define(['libs/jquery-1.9.1.min'], function($) {
meta.append('\n');
\r
return vkbeautify.xml(meta.html());
\r
}
\r
meta.append('\n');
\r
return vkbeautify.xml(meta.html());
\r
}
\r
- }
\r
+ }
;
\r
\r
});
\ No newline at end of file
\r
});
\ No newline at end of file
diff --git
a/modules/nodeBreadCrumbs/nodeBreadCrumbs.js
b/modules/nodeBreadCrumbs/nodeBreadCrumbs.js
index
c147c09
..
7331def
100644
(file)
--- a/
modules/nodeBreadCrumbs/nodeBreadCrumbs.js
+++ b/
modules/nodeBreadCrumbs/nodeBreadCrumbs.js
@@
-47,7
+47,7
@@
return function(sandbox) {
dimNode: function(node) {
\r
this.dom.find('a[data-id="'+node.id+'"]').removeClass('rng-common-hoveredNode');
\r
}
\r
dimNode: function(node) {
\r
this.dom.find('a[data-id="'+node.id+'"]').removeClass('rng-common-hoveredNode');
\r
}
\r
- }
\r
+ }
;
\r
\r
view.setup();
\r
\r
\r
view.setup();
\r
\r
@@
-61,7
+61,7
@@
return function(sandbox) {
},
\r
highlightNode: function(id) { view.highlightNode(id); },
\r
dimNode: function(id) { view.dimNode(id); }
\r
},
\r
highlightNode: function(id) { view.highlightNode(id); },
\r
dimNode: function(id) { view.dimNode(id); }
\r
- }
\r
-}
\r
+ }
;
\r
+}
;
\r
\r
});
\ No newline at end of file
\r
});
\ No newline at end of file
diff --git
a/modules/nodeFamilyTree/nodeFamilyTree.js
b/modules/nodeFamilyTree/nodeFamilyTree.js
index
b5cb56e
..
05d4aac
100644
(file)
--- a/
modules/nodeFamilyTree/nodeFamilyTree.js
+++ b/
modules/nodeFamilyTree/nodeFamilyTree.js
@@
-21,11
+21,11
@@
return function(sandbox) {
\r
this.dom.on('mouseenter', 'a', function(e) {
\r
var target = $(e.target);
\r
\r
this.dom.on('mouseenter', 'a', function(e) {
\r
var target = $(e.target);
\r
- sandbox.publish('nodeEntered', view.nodes[target.attr('data-id')])
\r
+ sandbox.publish('nodeEntered', view.nodes[target.attr('data-id')])
;
\r
});
\r
this.dom.on('mouseleave', 'a', function(e) {
\r
var target = $(e.target);
\r
});
\r
this.dom.on('mouseleave', 'a', function(e) {
\r
var target = $(e.target);
\r
- sandbox.publish('nodeLeft', view.nodes[target.attr('data-id')])
\r
+ sandbox.publish('nodeLeft', view.nodes[target.attr('data-id')])
;
\r
});
\r
},
\r
setNode: function(node) {
\r
});
\r
},
\r
setNode: function(node) {
\r
@@
-58,7
+58,7
@@
return function(sandbox) {
dimNode: function(canvasNode) {
\r
this.dom.find('a[data-id="'+canvasNode.getId()+'"]').removeClass('rng-common-hoveredNode');
\r
}
\r
dimNode: function(canvasNode) {
\r
this.dom.find('a[data-id="'+canvasNode.getId()+'"]').removeClass('rng-common-hoveredNode');
\r
}
\r
- }
\r
+ }
;
\r
\r
view.setup();
\r
\r
\r
view.setup();
\r
\r
diff --git
a/modules/nodePane/nodePane.js
b/modules/nodePane/nodePane.js
index
b825b1b
..
cc71d35
100644
(file)
--- a/
modules/nodePane/nodePane.js
+++ b/
modules/nodePane/nodePane.js
@@
-28,8
+28,8
@@
return function(sandbox) {
view.find('.rng-module-nodePane-tagSelect').val(canvasNode.getTag());
\r
view.find('.rng-module-nodePane-classSelect').val(canvasNode.getClass());
\r
}
\r
view.find('.rng-module-nodePane-tagSelect').val(canvasNode.getTag());
\r
view.find('.rng-module-nodePane-classSelect').val(canvasNode.getClass());
\r
}
\r
- }
\r
+ }
;
\r
\r
\r
-}
\r
+}
;
\r
\r
});
\ No newline at end of file
\r
});
\ No newline at end of file
diff --git
a/modules/rng/rng.js
b/modules/rng/rng.js
index
4189902
..
191c449
100644
(file)
--- a/
modules/rng/rng.js
+++ b/
modules/rng/rng.js
@@
-47,19
+47,19
@@
return function(sandbox) {
}
\r
sandbox.getModule('data').commitDocument(doc, reason);
\r
}
\r
}
\r
sandbox.getModule('data').commitDocument(doc, reason);
\r
}
\r
- }
\r
+ }
;
\r
\r
var commands = {
\r
highlightDocumentNode: function(canvasNode, origin) {
\r
['documentCanvas', 'nodeBreadCrumbs', 'nodeFamilyTree'].forEach(function(moduleName) {
\r
if(!origin || moduleName != origin)
\r
\r
var commands = {
\r
highlightDocumentNode: function(canvasNode, origin) {
\r
['documentCanvas', 'nodeBreadCrumbs', 'nodeFamilyTree'].forEach(function(moduleName) {
\r
if(!origin || moduleName != origin)
\r
- sandbox.getModule(moduleName).highlightNode(canvasNode)
\r
+ sandbox.getModule(moduleName).highlightNode(canvasNode)
;
\r
});
\r
},
\r
dimDocumentNode: function(canvasNode, origin) {
\r
['documentCanvas', 'nodeBreadCrumbs', 'nodeFamilyTree'].forEach(function(moduleName) {
\r
if(!origin || moduleName != origin)
\r
});
\r
},
\r
dimDocumentNode: function(canvasNode, origin) {
\r
['documentCanvas', 'nodeBreadCrumbs', 'nodeFamilyTree'].forEach(function(moduleName) {
\r
if(!origin || moduleName != origin)
\r
- sandbox.getModule(moduleName).dimNode(canvasNode)
\r
+ sandbox.getModule(moduleName).dimNode(canvasNode)
;
\r
});
\r
},
\r
selectNode: function(canvasNode, origin) {
\r
});
\r
},
\r
selectNode: function(canvasNode, origin) {
\r
@@
-82,7
+82,7
@@
return function(sandbox) {
sandbox.getModule(moduleName).setDocument(document);
\r
});
\r
}
\r
sandbox.getModule(moduleName).setDocument(document);
\r
});
\r
}
\r
- }
\r
+ }
;
\r
\r
\r
var views = {
\r
\r
\r
var views = {
\r
@@
-92,7
+92,7
@@
return function(sandbox) {
visualEditingSidebar: (new tabs.View({stacked: true})).render(),
\r
currentNodePaneLayout: new vbox.VBox(),
\r
diffLayout: new layout.Layout(diffLayoutTemplate)
\r
visualEditingSidebar: (new tabs.View({stacked: true})).render(),
\r
currentNodePaneLayout: new vbox.VBox(),
\r
diffLayout: new layout.Layout(diffLayoutTemplate)
\r
- }
\r
+ }
;
\r
\r
views.visualEditing.setView('rightColumn', views.visualEditingSidebar.getAsView());
\r
addMainTab('Edytor', 'editor', views.visualEditing.getAsView());
\r
\r
views.visualEditing.setView('rightColumn', views.visualEditingSidebar.getAsView());
\r
addMainTab('Edytor', 'editor', views.visualEditing.getAsView());
\r
@@
-161,7
+161,7
@@
return function(sandbox) {
sandbox.getModule('indicator').clearMessage({message:'Wersja ' + event.reverted_version + ' przywrócona'});
\r
sandbox.getModule('mainBar').setVersion(event.current_version);
\r
}
\r
sandbox.getModule('indicator').clearMessage({message:'Wersja ' + event.reverted_version + ' przywrócona'});
\r
sandbox.getModule('mainBar').setVersion(event.current_version);
\r
}
\r
- }
\r
+ }
;
\r
\r
eventHandlers.mainBar = {
\r
ready: function() {
\r
\r
eventHandlers.mainBar = {
\r
ready: function() {
\r
@@
-172,7
+172,7
@@
return function(sandbox) {
synchronizeTab(views.mainTabs.getCurrentSlug());
\r
sandbox.getModule('data').saveDocument();
\r
}
\r
synchronizeTab(views.mainTabs.getCurrentSlug());
\r
sandbox.getModule('data').saveDocument();
\r
}
\r
- }
\r
+ }
;
\r
\r
eventHandlers.indicator = {
\r
ready: function() {
\r
\r
eventHandlers.indicator = {
\r
ready: function() {
\r
@@
-274,7
+274,7
@@
return function(sandbox) {
nodeSelected: function(canvasNode) {
\r
commands.selectNode(canvasNode);
\r
}
\r
nodeSelected: function(canvasNode) {
\r
commands.selectNode(canvasNode);
\r
}
\r
- }
\r
+ }
;
\r
\r
eventHandlers.documentHistory = {
\r
ready: function() {
\r
\r
eventHandlers.documentHistory = {
\r
ready: function() {
\r
@@
-290,13
+290,13
@@
return function(sandbox) {
displayVersion: function(event) {
\r
window.open('/' + gettext('editor') + '/' + sandbox.getModule('data').getDocumentId() + '?version=' + event.version, _.uniqueId());
\r
}
\r
displayVersion: function(event) {
\r
window.open('/' + gettext('editor') + '/' + sandbox.getModule('data').getDocumentId() + '?version=' + event.version, _.uniqueId());
\r
}
\r
- }
\r
+ }
;
\r
\r
eventHandlers.diffViewer = {
\r
ready: function() {
\r
views.diffLayout.setView('right', sandbox.getModule('diffViewer').getView());
\r
}
\r
\r
eventHandlers.diffViewer = {
\r
ready: function() {
\r
views.diffLayout.setView('right', sandbox.getModule('diffViewer').getView());
\r
}
\r
- }
\r
+ }
;
\r
\r
/* api */
\r
\r
\r
/* api */
\r
\r
@@
-311,7
+311,7
@@
return function(sandbox) {
eventHandlers[moduleName][eventName].apply(eventHandlers, args);
\r
}
\r
}
\r
eventHandlers[moduleName][eventName].apply(eventHandlers, args);
\r
}
\r
}
\r
- }
\r
+ }
;
\r
};
\r
\r
});
\ No newline at end of file
};
\r
\r
});
\ No newline at end of file
diff --git
a/modules/sourceEditor/sourceEditor.js
b/modules/sourceEditor/sourceEditor.js
index
431fcb8
..
1c18e75
100644
(file)
--- a/
modules/sourceEditor/sourceEditor.js
+++ b/
modules/sourceEditor/sourceEditor.js
@@
-15,7
+15,7
@@
return function(sandbox) {
\r
editor.getSession().on('change', function() {
\r
sandbox.publish('xmlChanged');
\r
\r
editor.getSession().on('change', function() {
\r
sandbox.publish('xmlChanged');
\r
- })
\r
+ })
;
\r
return {
\r
start: function() {
\r
sandbox.publish('ready');
\r
return {
\r
start: function() {
\r
sandbox.publish('ready');
\r
@@
-25,13
+25,13
@@
return function(sandbox) {
},
\r
setDocument: function(document) {
\r
editor.setValue(document);
\r
},
\r
setDocument: function(document) {
\r
editor.setValue(document);
\r
- editor.gotoLine(0)
\r
+ editor.gotoLine(0)
;
\r
sandbox.publish('documentSet');
\r
},
\r
getDocument: function() {
\r
return editor.getValue();
\r
}
\r
sandbox.publish('documentSet');
\r
},
\r
getDocument: function() {
\r
return editor.getValue();
\r
}
\r
- }
\r
+ }
;
\r
};
\r
\r
});
\ No newline at end of file
};
\r
\r
});
\ No newline at end of file