Skip to content

Instantly share code, notes, and snippets.

View anutron's full-sized avatar

Aaron Newton anutron

View GitHub Profile
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]);
}
/*
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."
},