Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ensure namescope is available.. define it globally
- var Via = Via || {};
- // pass global var
- (function(Via) {
- Via.startMsg = 'Ready!';
- Via._isDev = true;
- Via.init = function() {
- Via.log(Via.startMsg);
- };
- Via.log = function(msg) {
- if(Via._isDev)
- console.log(msg)
- };
- // jq document ready
- $(Via.init());
- })(Via);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement