Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * A module implementation to bind events and do something else independently
- */
- var module = (function () {
- return function (elementType, methods) {
- console.log(elementType);
- console.log(methods);
- }
- })();
- /*
- * That is the usage of module implemenetation
- */
- module('button', {createNew : function () {} });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement