This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Class.Initializers = {}; | |
Class.Mutators.initialize = function(initialize){ | |
return function(){ | |
for (var modifier in Class.Initializers) { | |
if (!this[modifier]) continue; | |
this[modifier] = Class.Initializers[modifier].call(this, this[modifier]); | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Script: Element.Delegate.js | |
Extends the Element native object to include the delegate method for more efficient event management. | |
Based on the work of Daniel Steigerwald. | |
"Element.Delegate": { | |
"deps":["Element.Event"], | |
"desc":"Delegates events for child elements to their parents for greater efficiency." | |
}, |