Implement Item#onMouseEnter / #onMouseLeave.

This commit is contained in:
Jürg Lehni 2011-11-16 22:59:39 +01:00
parent c0e6d5b2ee
commit b3bf57c8e9
2 changed files with 23 additions and 15 deletions

View file

@ -36,5 +36,18 @@ var MouseEvent = this.MouseEvent = Event.extend(/** @lends MouseEvent# */{
+ ', target: ' + this.target
+ ', modifiers: ' + this.getModifiers()
+ ' }';
},
// TODO: Move to Event perhaps?
_call: function(bubble) {
var item = this.target,
called = false;
while (item) {
called = item.fire(this.type, this) || called;
if (called && (!bubble || this._stopped))
break;
item = item.getParent();
}
return called;
}
});