You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.
Bootlint looks at window.$ when checking for window.jQuery:
var globaljQuery = theWindow.$ || theWindow.jQuery;
but it should not do so as they can be different (e.g. Prototype and jQuery on the same page using $.noConflict). As jQuery's documentation states,
Many JavaScript libraries use $ as a function or variable name, just as jQuery does. In jQuery's case, $ is just an alias for jQuery, so all functionality is available without using $. If you need to use another JavaScript library alongside jQuery, return control of $ back to the other library with a call to $.noConflict().
I think there's no actual reason to look at $, as jQuery should always be defined when it's loaded.
var globaljQuery = theWindow.jQuery;
The text was updated successfully, but these errors were encountered:
Bootlint looks at
window.$
when checking forwindow.jQuery
:but it should not do so as they can be different (e.g. Prototype and jQuery on the same page using $.noConflict). As jQuery's documentation states,
I think there's no actual reason to look at
$
, asjQuery
should always be defined when it's loaded.The text was updated successfully, but these errors were encountered: