feature(listeners) rm appStorage

This commit is contained in:
coderaiser 2015-04-28 06:37:08 -04:00
parent 094682be87
commit ea53b519b9

View file

@ -20,7 +20,6 @@ var Util, DOM, CloudFunc, CloudCmd;
};
this.init = function () {
appStorage();
contextMenu();
dragndrop();
unload();
@ -234,22 +233,6 @@ var Util, DOM, CloudFunc, CloudCmd;
DOM.setCurrentFile(element);
}
function appStorage() {
Files.get('config', function(error, config) {
var isAppStorage = config.appStorage,
appStorage = window.applicationStorage;
if (isAppStorage && appStorage)
Events.add('updateready', appStorage, function() {
var ret = confirm('An update is available. Reload now?');
if (ret)
location.reload();
});
});
}
function contextMenu() {
Events.addContextMenu(document, function(event) {
CloudCmd.Menu.ENABLED || event.preventDefault();