Inline Anonymous Funcion Pattern

3. April 2008 – 13:41
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);

StumbleUpon Toolbar
  1. 4 Responses to “Inline Anonymous Funcion Pattern”

  2. What are the advantages? Does in-lining will improve performance?

    By Ramesh on Jul 15, 2009

  3. 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

  4. 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

  5. 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

Post a Comment

This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)

You must read and type the 5 chars within 0..9 and A..F, and submit the form.

  

Oh no, I cannot read this. Please, generate a