diff options
author | Michał Gołębiowski <m.goleb@gmail.com> | 2016-04-25 20:25:08 +0200 |
---|---|---|
committer | Michał Gołębiowski <m.goleb@gmail.com> | 2016-04-25 20:25:08 +0200 |
commit | 305f193aa57014dc7d8fa0739a3fefd47166cd44 (patch) | |
tree | 7eadfc06ae4e0301d8e6a592b4ebb1baf96322af /src/traversing | |
parent | e2d1142c2e8eb1c5ef2177e6739b1ce6d875d604 (diff) | |
download | jquery-305f193aa57014dc7d8fa0739a3fefd47166cd44.tar.gz jquery-305f193aa57014dc7d8fa0739a3fefd47166cd44.zip |
Build: Put all AMD modules in "src/" in strict mode
Fixes gh-3073
Diffstat (limited to 'src/traversing')
-rw-r--r-- | src/traversing/findFilter.js | 2 | ||||
-rw-r--r-- | src/traversing/var/dir.js | 2 | ||||
-rw-r--r-- | src/traversing/var/rneedsContext.js | 2 | ||||
-rw-r--r-- | src/traversing/var/siblings.js | 2 |
4 files changed, 8 insertions, 0 deletions
diff --git a/src/traversing/findFilter.js b/src/traversing/findFilter.js index 913034933..542852475 100644 --- a/src/traversing/findFilter.js +++ b/src/traversing/findFilter.js @@ -5,6 +5,8 @@ define( [ "../selector" ], function( jQuery, indexOf, rneedsContext ) { +"use strict"; + var risSimple = /^.[^:#\[\.,]*$/; // Implement the identical functionality for filter and not diff --git a/src/traversing/var/dir.js b/src/traversing/var/dir.js index b98fdca0e..366a823d6 100644 --- a/src/traversing/var/dir.js +++ b/src/traversing/var/dir.js @@ -2,6 +2,8 @@ define( [ "../../core" ], function( jQuery ) { +"use strict"; + return function( elem, dir, until ) { var matched = [], truncate = until !== undefined; diff --git a/src/traversing/var/rneedsContext.js b/src/traversing/var/rneedsContext.js index f57fd9de2..d0663cee8 100644 --- a/src/traversing/var/rneedsContext.js +++ b/src/traversing/var/rneedsContext.js @@ -2,5 +2,7 @@ define( [ "../../core", "../../selector" ], function( jQuery ) { + "use strict"; + return jQuery.expr.match.needsContext; } ); diff --git a/src/traversing/var/siblings.js b/src/traversing/var/siblings.js index 8a8880bf7..952629d0c 100644 --- a/src/traversing/var/siblings.js +++ b/src/traversing/var/siblings.js @@ -1,5 +1,7 @@ define( function() { +"use strict"; + return function( n, elem ) { var matched = []; |