Implement discard button.

This commit is contained in:
Paulo Gustavo Veiga
2012-03-07 20:52:09 -03:00
parent ae9f05dd05
commit 4de8eb17ec
4 changed files with 18 additions and 10 deletions

View File

@@ -27,6 +27,10 @@ mindplot.LocalStorageManager = new Class({
events.onSuccess();
},
discard : function(mapId) {
localStorage.removeItem(mapId + "-xml");
},
loadMapDom : function(mapId) {
var xml = localStorage.getItem(mapId + "-xml");
if (xml == null) {