X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/7e51aac084729ec15edc054e7c0bc3b07be05889..e6e83eed52400d6e8a6ee6339cbe212c8cac1f90:/modules/data.js diff --git a/modules/data.js b/modules/data.js index 36ba172..df40322 100644 --- a/modules/data.js +++ b/modules/data.js @@ -1,7 +1,12 @@ -rng.modules.data = function(sandbox) { +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 === '') { @@ -58,8 +63,11 @@ rng.modules.data = function(sandbox) { success: function() {sandbox.publish('savingEnded', 'success');}, error: function() {sandbox.publish('savingEnded', 'error');} }); + }, + getHistory: function() { + return history; } - } +}; -}; \ No newline at end of file +}); \ No newline at end of file