X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/b7d40f4f02e71505150c8b33ad3ad7d7acde0ae2..969f365b3ee6d3cb54f98b23e1ebb97df9f801dd:/modules/sourceEditor/sourceEditor.js?ds=sidebyside 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