Advertisement
Guest User

Untitled

a guest
Jan 29th, 2015
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. /*
  2. * A module implementation to bind events and do something else independently
  3. */
  4. var module = (function () {
  5. return function (elementType, methods) {
  6. console.log(elementType);
  7. console.log(methods);
  8. }
  9. })();
  10.  
  11. /*
  12. * That is the usage of module implemenetation
  13. */
  14. module('button', {createNew : function () {} });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement