Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*jslint sloppy:true, white:true, browser:true */
- /*global app, jQuery */
- if( app === undefined ) { //lint complains here about the "undefined"
- var app = {};
- }
- //Self-Executing Anonymous Function (Public & Private)
- (function(core, $) {
- //private
- var privateVarValue = 1;
- //public
- //app.core.publicVarValue; //lint complains here (expectged assignment or function call)
- app.core.someFunction = function () {
- $("#someId").append(core.something + privateVarValue);
- };
- }( window.app.core || {}, jQuery ));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement