X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/b7d40f4f02e71505150c8b33ad3ad7d7acde0ae2..4a10da821d96b8e462cc9db5e74e2507445eee76:/modules/sourceEditor/sourceEditor.js diff --git a/modules/sourceEditor/sourceEditor.js b/modules/sourceEditor/sourceEditor.js index bd56c43..1c18e75 100644 --- a/modules/sourceEditor/sourceEditor.js +++ b/modules/sourceEditor/sourceEditor.js @@ -1,5 +1,7 @@ define(function() { +'use strict'; + return function(sandbox) { var view = $(sandbox.getTemplate('main')()); @@ -13,7 +15,7 @@ return function(sandbox) { editor.getSession().on('change', function() { sandbox.publish('xmlChanged'); - }) + }); return { start: function() { sandbox.publish('ready'); @@ -23,13 +25,13 @@ return function(sandbox) { }, setDocument: function(document) { editor.setValue(document); - editor.gotoLine(0) + editor.gotoLine(0); sandbox.publish('documentSet'); }, getDocument: function() { return editor.getValue(); } - } + }; }; }); \ No newline at end of file