Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Inspector is probably setting window.$ if window.$ is not global by default #222

Open
jasonLaster opened this issue Jan 16, 2015 · 0 comments
Labels

Comments

@jasonLaster
Copy link
Member

@thejameskyle reported that w/ his app jQuery is being set by the insepctor inside of core.js.

We should clean this up:

Here's the naive solution we came up with the other day...

if (typeof window.$ == "undefined" && typeof window.jQuery == "undefined") {
  // @include ../../lib/jquery/jquery.js
   this.$ = $ || window.$ || window.jQuery;
   var $ = this.$;
   delete window.$;
   delete window.jQuery;
} else {
   var $ = window.$ || window.jQuery;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant