Advertisement
Guest User

Untitled

a guest
Jun 28th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. // ensure namescope is available.. define it globally
  2. var Via = Via || {};
  3.  
  4. // pass global var
  5. (function(Via) {
  6. Via.startMsg = 'Ready!';
  7. Via._isDev = true;
  8.  
  9. Via.init = function() {
  10. Via.log(Via.startMsg);
  11. };
  12.  
  13. Via.log = function(msg) {
  14. if(Via._isDev)
  15. console.log(msg)
  16. };
  17.  
  18. // jq document ready
  19. $(Via.init());
  20.  
  21. })(Via);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement