3 ms·
You can also use the module pattern[1] to isolate code from tampering or conflicts: (function($, window, undefined) { $(document).ready({ // etc.
by Encosia 16y ago
You can also use the module pattern[1] to isolate code from tampering or conflicts:
(function($, window, undefined) {
$(document).ready({
// etc.
});
}(jQuery, window);
[1] http://www.yuiblog.com/blog/2007/06/12/module-pattern/ http://www.yuiblog.com/blog/2007/06/12/module-pattern/