Created
March 24, 2020 10:03
-
-
Save abhianair/c588a85ab24c5df6f2787a9519933f27 to your computer and use it in GitHub Desktop.
Jquery function wrapping
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var main = (function($, window, document){ | |
function object(){ | |
// scripts | |
return{ | |
object : object, | |
}; | |
}(window.jQuery, window, document)); | |
$( document ).on('load', function() { | |
main.object(); | |
}); | |
function init(){ | |
main.object(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment