Skip to content

Instantly share code, notes, and snippets.

@asjustas
Created March 30, 2012 17:36
Show Gist options
  • Save asjustas/2253232 to your computer and use it in GitHub Desktop.
Save asjustas/2253232 to your computer and use it in GitHub Desktop.
var Example = window.Example || (function() {
var self = {};
// This method:
self.Update = function() {
var self = {};
self.itemcurrency = function() {
}
self.currency = function() {
}
return self;
},
// Or this method:
self.Update2 = {
ItemCurrency: function() {
},
Currency: function() {
}
}
return self;
})();
//usage
// For first method
Example.Update().itemcurrency();
// For second method
Example.Update2.itemcurrency();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment