gigafied/minion — Issue #2: __preDefine
Author: gigafied
Created: 2012-01-19 21:21:24+00:00
State: open

__preDefine hook to add dynamic properties/methods to a class after it is defined.

__preDefine : function () {

for(var f in this.fields) {
// Do something cool here...
}

}

This will allow you to modify a Class after all it's dependencies are loaded and after all other properties are set.