this.tab = new Element("a", {"href": "#"});
this.tab.addClass("tab");
- this.tab.addEvent("focus", this.tab.blur);
+ this.tab.addEvent("focus", function() { this.blur() }.bind(this.tab));;
+
parentObject.tabs.appendChild(this.tab);
this.tab.appendText(name);
this.client.exec("/QUERY " + e.realNick);
}.bind(this));
- e.addEvent("focus", e.blur);
+ e.addEvent("focus", function() { this.blur() }.bind(e));
return e;
},