Inline Anonymous Funcion Pattern
3. April 2008 – 13:411 2 3 4 5 6 | var msg = "From inline function"; var result = (function(m) { alert(m); return "Result of inline function"; }(msg)); alert(result); |
For good of all productive developers
1 2 3 4 5 6 | var msg = "From inline function"; var result = (function(m) { alert(m); return "Result of inline function"; }(msg)); alert(result); |
4 Responses to “Inline Anonymous Funcion Pattern”
What are the advantages? Does in-lining will improve performance?
By Ramesh on Jul 15, 2009
Sometimes you need to calculate result, e.g. while configuring a component, one of the options has to be “calculated”.
Performance is not a point here.
By Saki on Jul 15, 2009
Hi,
In your examples you have the line:
Where i can find this file extjs.ico ?
Please, can you send to me ?
Beast regard´s,
Jose Sousa
By Jose Sousa on Jul 19, 2009
Hi,
In your examples you have the line:
link rel=”shortcut icon” ref=”./img/extjs.ico”
Where i can find this file extjs.ico ?
Please, can you send to me ?
Beast regard´s,
Jose Sousa
By Jose Sousa on Jul 19, 2009