This file contains hidden or 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
company.master.users = company.master.users.extend(function($, log){ | |
}, $, loggingSystem); |
This file contains hidden or 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
company.master.users = company.master.users.extend(function(){ | |
// use it | |
var myLocalThing = this.privateThing, | |
ExposedClass = function(){ | |
}; | |
return { | |
Exposed:ExposedClass | |
} | |
}); |
This file contains hidden or 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
company.master.users = company.master.createModule( function(){ | |
var RevealedClass, hiddenFunction | |
RevealedClass = function(){ | |
// stuff | |
}; | |
hiddenFunction = function(){}; | |
// this is the private area of the module | |
this.privateThing = 42; |
This file contains hidden or 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
company = app.namespace(company); | |
company.master= app.namespace(company.master) |
This file contains hidden or 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
mything = (function(){ | |
var Foo, Bar, binky, boo; | |
binky = function() { | |
// does something useful | |
}; | |
boo = function() { | |
// does something amazing | |
}; |
This file contains hidden or 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
app = (function () { | |
var Namespace = function () { | |
} | |
var Module = function () { | |
} | |
Namespace.prototype.createModule = function () { | |
var m = new Module; | |
if(arguments.length > 0) |
NewerOlder