Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. // The core app code
  2. var myApp = (function () {
  3.  
  4. 'use strict';
  5.  
  6. // Create a public methods object
  7. var methods = {};
  8.  
  9. /**
  10. * Extend the public methods object
  11. * @param {String} name The new method name
  12. * @param {Function} fn The new method
  13. */
  14. methods.extend = function (name, fn) {
  15. methods[name] = fn;
  16. };
  17.  
  18. // Return public methods object
  19. return methods;
  20.  
  21. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement