Commit 9346c0ef authored by jaubourg's avatar jaubourg

adds strict rule to jshint options (except for test files). "use strict" is...

adds strict rule to jshint options (except for test files). "use strict" is added to the main jQuery closure and some "could-be-unsafe" `this` trickery in effects is silenced.
parent ee9687d4
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
"node": true, "node": true,
"quotmark": "double", "quotmark": "double",
"smarttabs": true, "smarttabs": true,
"strict": true,
"trailing": true, "trailing": true,
"undef": true, "undef": true,
"unused": true "unused": true
......
...@@ -6,8 +6,10 @@ ...@@ -6,8 +6,10 @@
"evil": true, "evil": true,
"expr": true, "expr": true,
"maxerr": 100, "maxerr": 100,
"newcap": false,
"quotmark": "double", "quotmark": "double",
"smarttabs": true, "smarttabs": true,
"strict": true,
"sub": true, "sub": true,
"trailing": true, "trailing": true,
"undef": true, "undef": true,
......
...@@ -233,6 +233,7 @@ jQuery.Animation = jQuery.extend( Animation, { ...@@ -233,6 +233,7 @@ jQuery.Animation = jQuery.extend( Animation, {
}); });
function defaultPrefilter( elem, props, opts ) { function defaultPrefilter( elem, props, opts ) {
/*jshint validthis:true */
var index, prop, value, length, dataShow, tween, hooks, oldfire, var index, prop, value, length, dataShow, tween, hooks, oldfire,
anim = this, anim = this,
style = elem.style, style = elem.style,
......
...@@ -12,3 +12,4 @@ ...@@ -12,3 +12,4 @@
* Date: @DATE * Date: @DATE
*/ */
(function( window, undefined ) { (function( window, undefined ) {
"use strict";
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment