Guest User

Untitled

a guest
Mar 24th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. var generico = (function ($) {
  2. 'use strict';
  3.  
  4. /**
  5. * Empty placeholder function.
  6. *
  7. * @since 1.0.0
  8. */
  9. var functionName = function () {
  10. // Empty function, do all the things.
  11. },
  12.  
  13. /**
  14. * Fire events on document ready, and bind other events.
  15. *
  16. * @since 1.0.0
  17. */
  18. ready = function () {
  19. functionName();
  20.  
  21. // Examples binding to events.
  22. $(window).on('resize.generico', functionName);
  23. $(window).on('scroll.generico resize.generico', functionName);
  24. };
  25.  
  26. // Only expose the ready function to the world
  27. return {
  28. ready: ready
  29. };
  30.  
  31. })(jQuery);
  32.  
  33. jQuery(generico.ready);
Add Comment
Please, Sign In to add comment