Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // IIFE - Immediately Invoked Function Expression
- (function(yourcode) {
- // The global jQuery object is passed as a parameter
- yourcode(window.jQuery, window, document);
- }(function($, window, document) {
- // The $ is now locally scoped
- // Listen for the jQuery ready event on the document
- $(function() {
- // The DOM is ready!
- });
- // The rest of the code goes here!
- }
- }));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement