X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/cf92775489840f1dc7b2c65fae6b968beadbad7e..95f83648504b6552ff3cbf956f55c6bf5f542a9b:/modules/data.js?ds=sidebyside diff --git a/modules/data.js b/modules/data.js index 0fab1a7..2848454 100644 --- a/modules/data.js +++ b/modules/data.js @@ -1,5 +1,7 @@ define(function() { +'use strict'; + return function(sandbox) { var doc = sandbox.getBootstrappedData().document; @@ -60,14 +62,7 @@ return function(sandbox) { success: function() {sandbox.publish('savingEnded', 'success');}, error: function() {sandbox.publish('savingEnded', 'error');} }); - }, - fakeSave: function() { - sandbox.publish('savingStarted'); - window.setTimeout(function() { - sandbox.publish('savingEnded', 'success') - }, 2000); - } - + } } };