Module Pattern Design in Javascript

var Module;
(function($) {
"use strict";
Module = (function() {
return {
init: function() {
this.counterShortcode()
},
counterShortcode: function() {
alert('Hello World');
}
}
}());
})(jQuery);
$(document).ready(function(){
Module.init();
})
Share on Google Plus

About Amit

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment