X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/cf92775489840f1dc7b2c65fae6b968beadbad7e..e6e83eed52400d6e8a6ee6339cbe212c8cac1f90:/modules/data.js diff --git a/modules/data.js b/modules/data.js index 0fab1a7..df40322 100644 --- a/modules/data.js +++ b/modules/data.js @@ -1,9 +1,12 @@ define(function() { +'use strict'; + return function(sandbox) { var doc = sandbox.getBootstrappedData().document; var document_id = sandbox.getBootstrappedData().document_id; + var history = sandbox.getBootstrappedData().history; if(doc === '') { @@ -61,13 +64,9 @@ return function(sandbox) { error: function() {sandbox.publish('savingEnded', 'error');} }); }, - fakeSave: function() { - sandbox.publish('savingStarted'); - window.setTimeout(function() { - sandbox.publish('savingEnded', 'success') - }, 2000); + getHistory: function() { + return history; } - } };