Hi friends,
I need verification that this code located in a class, or furthermore,
anywhere in flash would cause the application to run into an endless loop if
it were run with the debugger.
function __resolve(name){
var iRef=_items;
if(iRef[0][name] instanceof Function){
return function(){
var i=-1, l=iRef.length, r = [];
while(++i<l)
r[i] = iRef[i][name].apply(iRef[i], arguments);
return r;
};
} else if(iRef[0][name] != null){
return function(){
var i=-1, l=iRef.length, r = [];
while(++i<l)
r[i] = iRef[i][name];
return r;
};
}
}
Where _items is an array of objects which are checked to contain a function
that the object which the particular function was invoked upon should
delegate to in case of inexistence in itself.
Thank you,
M.
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com