X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/9d74ca302ea182d336853aa2578cc455c32556be..e6e83eed52400d6e8a6ee6339cbe212c8cac1f90:/modules/data.js diff --git a/modules/data.js b/modules/data.js index 2848454..df40322 100644 --- a/modules/data.js +++ b/modules/data.js @@ -6,6 +6,7 @@ return function(sandbox) { var doc = sandbox.getBootstrappedData().document; var document_id = sandbox.getBootstrappedData().document_id; + var history = sandbox.getBootstrappedData().history; if(doc === '') { @@ -62,7 +63,10 @@ return function(sandbox) { success: function() {sandbox.publish('savingEnded', 'success');}, error: function() {sandbox.publish('savingEnded', 'error');} }); - } + }, + getHistory: function() { + return history; + } } };