Courtesy of Microsoft Silverlight -- call events in the context of another object:
// Usage: this.button.addEventListener("MouseEnter", Silverlight.createDelegate(this, this.handleMouseEnter));
Silverlight.createDelegate = function(instance, method) {
return function() { return method.
apply(instance, arguments); }
}
References
Prototype.js - Prototype Javascript Framework Source Code
Comments (0)
You don't have permission to comment on this page.