SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: pattern name

  1. #1
    SitePoint Guru whisher's Avatar
    Join Date
    May 2006
    Location
    Kakiland
    Posts
    732
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    pattern name

    Hi,
    is there a pattern name for this ?
    PHP Code:
    var HelloWorld = (function () {
        function 
    HelloWorld(str) {
            
    alert(str);
        }
        return 
    HelloWorld;
    })();
    HelloWorld('Hello there :)'); 
    Thanks in advance.
    Bye

  2. #2
    SitePoint Guru whisher's Avatar
    Join Date
    May 2006
    Location
    Kakiland
    Posts
    732
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    may be module pattern ?

  3. #3
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    5,313
    Mentioned
    178 Post(s)
    Tagged
    9 Thread(s)
    Yup, that's correct.

    This article by Brothercake goes into more depth.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •