Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

module = function(){ Module Pattern: Javascript Best Practices

150,019 views

Published on

module = function(){
Module Pattern:
var labels = [
You need to specify
‘home’:’home’,
‘articles’:’articles’, what is global and
‘contact’:’contact’
what isn’t – switching
];
syntax in between.
return {
current:null,
init:function(){
},
show:function(){
module.current = 1;
},
hide:function(){
module.show();
}
}
}();

Published in: Technology
  • Login to see the comments

×