this.init(); binding must contain an element with anonid=\"button\""; var menubuttonParent = this; btn.addEventListener("mouseover", function() { if (!this.disabled) menubuttonParent.buttonover = true; }, true); btn.addEventListener("mouseout", function() { menubuttonParent.buttonover = false; }, true); btn.addEventListener("mousedown", function() { if (!this.disabled) { menubuttonParent.buttondown = true; document.addEventListener("mouseup", menubuttonParent, true); } }, true); ]]> false if (event.originalTarget == this) this.open = true; if (event.originalTarget == this) this.open = true;