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

Check that $ is defined and jQuery version is acceptable #35

Merged
merged 3 commits into from
Nov 25, 2012

Conversation

dcramer
Copy link
Member

@dcramer dcramer commented Nov 25, 2012

No description provided.

@@ -49,6 +49,14 @@
}
}

// XXX: is there a better place to put this?
if ($ === undefined) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (typeof($) === 'undefined')

@@ -49,6 +49,14 @@
}
}

// XXX: is there a better place to put this?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about up above where you define the $?

dcramer added a commit that referenced this pull request Nov 25, 2012
Check that $ is defined and jQuery version is acceptable
@dcramer dcramer merged commit 14d5c56 into develop Nov 25, 2012
@@ -20,6 +20,12 @@

// jQuery, Zepto, or Ender owns the `$` variable.
var $ = root.jQuery || root.Zepto || root.ender;
if (typeof($) === 'undefined') {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That sounds to me as the idiomatic way to make this check. Not sure the strict equality is needed though

kamilogorek pushed a commit that referenced this pull request Jun 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants