This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQueryz = (function(){ | |
var a = 1; | |
function b(){ | |
alert(a); | |
a++; | |
} | |
return { | |
b : b | |
} | |
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var CLASSNAME = (function(self){ | |
var _private = 0; | |
function __init(){ | |
//run self init stuff here | |
} | |
function returnPrivate(){ | |
return _private; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var CLASSNAME = function(){ | |
var first = "firstvar", | |
second = "secondvar"; | |
//Expose private vars | |
return { | |
first :first | |
}; | |
})(); |