Skip to content

Conversation

@jaubourg
Copy link
Member

I wanted to see if anyone knew of any place in the code where we assume this to be window in functions called without a context before merging this in (that's the only change in behaviour I can think of but feel free to correct me, I'm not a strict mode specialist).

Also, I didn't enforce strict mode for the test directory yet, seeing as everything single test function would require a "use strict" declaration or we'd need to embed every unit file into an IIFE (something that could probably be done automagically but my eyes burn and I need to sleep right now).

…ct" is added to the main jQuery closure and some "could-be-unsafe" `this` trickery in effects is silenced.
@jaubourg
Copy link
Member Author

Also, the "use strict" directive has to stay in the minified file because it changes runtime behaviour.

.jshintrc Outdated
Copy link
Member

Choose a reason for hiding this comment

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

Unnecessary, as the node: true option covers this already.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good to know. On the move today, feel free to hack in the branch ;)

jaubourg added a commit that referenced this pull request Oct 19, 2012
@jaubourg jaubourg merged commit b386080 into master Oct 19, 2012
mescoda pushed a commit to mescoda/jquery that referenced this pull request Nov 4, 2014
@lock lock bot locked as resolved and limited conversation to collaborators Jan 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

10 participants