OZONE Asylum
Forums
DHTML/Javascript
20 Liners - January 08 - Dynamics
This page's ID:
29836
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Ok, so how many lines do you guys count for this very specific methods currier ?[code]/* A */ for( chainThat in {methodA:1,methodB:1} ) /* */ { /* B */ anObject.prototype[chainThat] = function( func ) /* */ { /* C */ return function() /* */ { /* D */ return func.apply( this, arguments )||this; /* */ } /* E */ }( anObject.prototype[chainThat] ); /* */ }[/code][ulist]* 5 ? * 4 since the line E is the just calling the anonymous function declared in B and hence is part of the declaration of [i]anObject.prototype[chainThat][/i] ? * less ?[/ulist] That shouldn't make much difference obviously but I'm curious. [url=http://www.p01.org/][img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_dk.gif[/img][/url] [small](Edited by [url=http://www.ozoneasylum.com/user/2185]poi[/url] on 01-10-2008 05:30)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »