summaryrefslogtreecommitdiff
path: root/framework/Web/Javascripts/js/logger.js
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/Javascripts/js/logger.js')
-rw-r--r--framework/Web/Javascripts/js/logger.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/framework/Web/Javascripts/js/logger.js b/framework/Web/Javascripts/js/logger.js
index 46233a50..afb4fd3b 100644
--- a/framework/Web/Javascripts/js/logger.js
+++ b/framework/Web/Javascripts/js/logger.js
@@ -479,7 +479,7 @@ if(this.d.getElementById("so_mContainer")){
this.d.body.removeChild(this.d.getElementById("so_mContainer"));
this.d.body.removeChild(this.d.getElementById("so_mStyle"));
if(typeof Event!="undefined"){
-Event.stopObserving(this.d,"keydown",this.handleKeyEvent.bind(this));
+Event.stopObserving(this.d,"keydown",this.dKeyDownEvent);
}
this.types=new Array();
this.objs=new Array();
@@ -496,8 +496,9 @@ sObj=this.d.body.appendChild(this.d.createElement("style"));
sObj.id="so_mStyle";
sObj.type="text/css";
sObj.innerHTML=this.style;
+this.dKeyDownEvent=this.handleKeyEvent.bind(this);
if(typeof Event!="undefined"){
-Event.observe(this.d,"keydown",this.handleKeyEvent.bind(this));
+Event.observe(this.d,"keydown",this.dKeyDownEvent);
}
this.parseJS(obj);
this.buildTree();