X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/a15440ff7162c8cc0731e260cf4cacab5b998c62..e6e83eed52400d6e8a6ee6339cbe212c8cac1f90:/modules/data.js diff --git a/modules/data.js b/modules/data.js index 527b928..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 === '') { @@ -60,8 +63,10 @@ return function(sandbox) { success: function() {sandbox.publish('savingEnded', 'success');}, error: function() {sandbox.publish('savingEnded', 'error');} }); + }, + getHistory: function() { + return history; } - } };