Commit b9f682f3 authored by Tristan Cavelier's avatar Tristan Cavelier

revisionstorage.js wrapper changed to avoid global var

parent e862dbff
/**
* JIO Revision Storage. Type = 'revision'.
* JIO Revision Storage.
* It manages document version and can generate conflicts.
* Description:
* {
* "type": "revision",
* "secondstorage": <sub storage description>
* }
*/
var newRevisionStorage = (function (spec, my) {
jIO.addStorageType('revision', function (spec, my) {
var that, priv = {};
spec = spec || {};
that = my.basicStorage(spec, my);
......@@ -216,5 +221,4 @@ var newRevisionStorage = (function (spec, my) {
};
return that;
}());
jIO.addStorageType('revision', newRevisionStorage);
});
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment