fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
history wip - displaying history items
[fnpeditor.git]
/
modules
/
data.js
diff --git
a/modules/data.js
b/modules/data.js
index
0fab1a7
..
df40322
100644
(file)
--- a/
modules/data.js
+++ b/
modules/data.js
@@
-1,9
+1,12
@@
define(function() {
\r
\r
define(function() {
\r
\r
+'use strict';
\r
+
\r
return function(sandbox) {
\r
\r
var doc = sandbox.getBootstrappedData().document;
\r
var document_id = sandbox.getBootstrappedData().document_id;
\r
return function(sandbox) {
\r
\r
var doc = sandbox.getBootstrappedData().document;
\r
var document_id = sandbox.getBootstrappedData().document_id;
\r
+ var history = sandbox.getBootstrappedData().history;
\r
\r
\r
if(doc === '') {
\r
\r
\r
if(doc === '') {
\r
@@
-61,13
+64,9
@@
return function(sandbox) {
error: function() {sandbox.publish('savingEnded', 'error');}
\r
});
\r
},
\r
error: function() {sandbox.publish('savingEnded', 'error');}
\r
});
\r
},
\r
- fakeSave: function() {
\r
- sandbox.publish('savingStarted');
\r
- window.setTimeout(function() {
\r
- sandbox.publish('savingEnded', 'success')
\r
- }, 2000);
\r
+ getHistory: function() {
\r
+ return history;
\r
}
\r
}
\r
-
\r
}
\r
};
\r
\r
}
\r
};
\r
\r