From 59acb7168f988f43827b189cdc782c5d37824cc0 Mon Sep 17 00:00:00 2001 From: Jan Kowalleck Date: Thu, 10 Oct 2019 20:53:26 +0200 Subject: [PATCH] removed debugger from template --- templates.py | 19 +++++++++---------- templates_raw/root/js/helper.js | 1 - 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/templates.py b/templates.py index ee65219b..ca49d09e 100644 --- a/templates.py +++ b/templates.py @@ -95,16 +95,15 @@ if ( ! obj ) { return; } if ( obj.dispatchEvent ) { obj.dispatchEvent(new Event(event)); } else { obj.fireEvent("on" + event); } }, storageFactory : function () { try { var ls = window.localStorage; var lst = "test"; ls.setItem(lst, lst); if (lst != ls.getItem(lst)) { throw "ls.getItem"; } ls.removeItem(lst); return ls; } catch (e) { -debugger; return { _store : {} , setItem : function (k,v) { this._store[k]=v; } -, getItem : function (k) { return this._store[k]; } }; } } };