Skip to content

Commit

Permalink
Better description of handler
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed May 27, 2014
1 parent a139e88 commit 35e4008
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion imp/js/dimpbase.js
Expand Up @@ -4134,7 +4134,7 @@ var DimpBase = {
var DM = DimpCore.DMenu, tmp, tmp2;

/* Register global handlers now. */
IMP_JS.keydownhandler = this.keydownHandler.bindAsEventListener(this);
IMP_JS.html_keydownhandler = this.keydownHandler.bindAsEventListener(this);
HordeCore.initHandler('click');
HordeCore.initHandler('dblclick');

Expand Down
8 changes: 4 additions & 4 deletions imp/js/imp.js
Expand Up @@ -8,7 +8,7 @@

var IMP_JS = {

keydownhandler: null,
html_keydownhandler: null,

/**
* Use DOM manipulation to un-block images.
Expand Down Expand Up @@ -107,11 +107,11 @@ var IMP_JS = {
d.write(data);
d.close();

if (this.keydownhandler) {
if (this.html_keydownhandler) {
if (d.addEventListener) {
d.addEventListener('keydown', this.keydownhandler, false);
d.addEventListener('keydown', this.html_keydownhandler, false);
} else {
d.attachEvent('onkeydown', this.keydownhandler);
d.attachEvent('onkeydown', this.html_keydownhandler);
}
}

Expand Down

0 comments on commit 35e4008

Please sign in to comment.