OZONE Asylum
Forums
DHTML/Javascript
Catle Wolfenstein ( continued )
This page's ID:
29953
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
[quote][b]poi said:[/b] You mean putting everything in the window object?[/quote]Nope. It looked more like this, actually:[code]var transform= function(fn1,fn2,fn3,...){ ... return function(transformpattern){...}; }( function(objects,that,were,scoped,variables,in,first,version){...}, function(objects,that,were,scoped,variables,in,first,version){...}, function(objects,that,were,scoped,variables,in,first,version){...}, ...); transform(transformpattern);[/code]Basically, all data including all functions needed passed as arguments instead of contained in variables in the scope of transform. That means no variable in any function need to be looked up in a containing scope at any point, including function names. -- var Liorean = { abode: "[sigrotate][url]http://liorean.web-graphics.com/[/url]|[url]http://codingforums.com/[/url]|[url]http://web-graphics.com/[/url][/sigrotate]", profile: "[url]http://codingforums.com/member.php?u=5798[/url]"}; [small](Edited by [url=http://www.ozoneasylum.com/user/5032]liorean[/url] on 02-03-2008 01:29)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »