X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/4ae1d665fcd3af9fb06d664418f02f365933d9ae..95f83648504b6552ff3cbf956f55c6bf5f542a9b:/modules/data.js diff --git a/modules/data.js b/modules/data.js index 7a59cfb..2848454 100644 --- a/modules/data.js +++ b/modules/data.js @@ -1,12 +1,15 @@ -rng.modules.data = function(sandbox) { +define(function() { + +'use strict'; + +return function(sandbox) { var doc = sandbox.getBootstrappedData().document; var document_id = sandbox.getBootstrappedData().document_id; if(doc === '') { - doc = '\n\ - '; } @@ -60,8 +62,8 @@ rng.modules.data = function(sandbox) { success: function() {sandbox.publish('savingEnded', 'success');}, error: function() {sandbox.publish('savingEnded', 'error');} }); - } - + } } +}; -}; \ No newline at end of file +}); \ No newline at end of file