I am recovering from the 4th so I figured I would go back and point out something that some may or may not have noticed in some previous code.
Glyph.prototype.__resolve = function(methodName){
return function(){
arguments.unshift(this.ref_mc);
return this.ref_class[methodName].apply(this.ref_class,arguments);
}
}
If you look closely I use the local variable methodName in the returned generic function. I actually have used this a lot when I use the __resolve method. I don't use it many other places, but none the less its useful.
1:22:32 PM
|