Created
February 19, 2013 01:04
-
-
Save andresgallo/4982191 to your computer and use it in GitHub Desktop.
AUGMENTATION PATTERN
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 | |
}; | |
})(); | |
//EXTEND ORIGINAL CLASS | |
var CLASSNAME = function(self){ | |
self.third = "third"; | |
return self; | |
})(CLASSNAME || {}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment