Advertisement
Guest User

Untitled

a guest
Nov 17th, 2014
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*jslint sloppy:true, white:true, browser:true */
  2. /*global app, jQuery */
  3. if( app === undefined ) { //lint complains here about the "undefined"
  4.     var app = {};
  5. }
  6.  
  7. //Self-Executing Anonymous Function (Public & Private)
  8. (function(core, $) {
  9.  
  10.     //private
  11.     var privateVarValue = 1;
  12.  
  13.     //public
  14.     //app.core.publicVarValue; //lint complains here (expectged assignment or function call)
  15.  
  16.     app.core.someFunction = function () {
  17.         $("#someId").append(core.something + privateVarValue);
  18.     };
  19.  
  20. }( window.app.core || {}, jQuery ));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement