aboutsummaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorMichał Gołębiowski <m.goleb@gmail.com>2016-04-25 20:25:08 +0200
committerMichał Gołębiowski <m.goleb@gmail.com>2016-04-25 20:25:08 +0200
commit305f193aa57014dc7d8fa0739a3fefd47166cd44 (patch)
tree7eadfc06ae4e0301d8e6a592b4ebb1baf96322af /src/core
parente2d1142c2e8eb1c5ef2177e6739b1ce6d875d604 (diff)
downloadjquery-305f193aa57014dc7d8fa0739a3fefd47166cd44.tar.gz
jquery-305f193aa57014dc7d8fa0739a3fefd47166cd44.zip
Build: Put all AMD modules in "src/" in strict mode
Fixes gh-3073
Diffstat (limited to 'src/core')
-rw-r--r--src/core/DOMEval.js2
-rw-r--r--src/core/access.js2
-rw-r--r--src/core/init.js2
-rw-r--r--src/core/parseHTML.js2
-rw-r--r--src/core/ready-no-deferred.js2
-rw-r--r--src/core/ready.js2
-rw-r--r--src/core/support.js2
-rw-r--r--src/core/var/rsingleTag.js1
8 files changed, 15 insertions, 0 deletions
diff --git a/src/core/DOMEval.js b/src/core/DOMEval.js
index 222b0ca2a..c49c12e5e 100644
--- a/src/core/DOMEval.js
+++ b/src/core/DOMEval.js
@@ -1,6 +1,8 @@
define( [
"../var/document"
], function( document ) {
+ "use strict";
+
function DOMEval( code, doc ) {
doc = doc || document;
diff --git a/src/core/access.js b/src/core/access.js
index 19f79efa4..735c75711 100644
--- a/src/core/access.js
+++ b/src/core/access.js
@@ -2,6 +2,8 @@ define( [
"../core"
], function( jQuery ) {
+"use strict";
+
// Multifunctional method to get and set values of a collection
// The value/s can optionally be executed if it's a function
var access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
diff --git a/src/core/init.js b/src/core/init.js
index a00d58791..19a3c7c68 100644
--- a/src/core/init.js
+++ b/src/core/init.js
@@ -6,6 +6,8 @@ define( [
"../traversing/findFilter"
], function( jQuery, document, rsingleTag ) {
+"use strict";
+
// A central reference to the root jQuery(document)
var rootjQuery,
diff --git a/src/core/parseHTML.js b/src/core/parseHTML.js
index 260fd3ca7..21ff6bfa7 100644
--- a/src/core/parseHTML.js
+++ b/src/core/parseHTML.js
@@ -8,6 +8,8 @@ define( [
"./support"
], function( jQuery, document, rsingleTag, buildFragment, support ) {
+"use strict";
+
// Argument "data" should be string of html
// context (optional): If specified, the fragment will be created in this context,
// defaults to document
diff --git a/src/core/ready-no-deferred.js b/src/core/ready-no-deferred.js
index 66f209bf7..5baed2e5c 100644
--- a/src/core/ready-no-deferred.js
+++ b/src/core/ready-no-deferred.js
@@ -3,6 +3,8 @@ define( [
"../var/document"
], function( jQuery, document ) {
+"use strict";
+
var readyCallbacks = [],
readyFiring = false,
whenReady = function( fn ) {
diff --git a/src/core/ready.js b/src/core/ready.js
index b98ff5ba0..bb4e222d3 100644
--- a/src/core/ready.js
+++ b/src/core/ready.js
@@ -4,6 +4,8 @@ define( [
"../deferred"
], function( jQuery, document ) {
+"use strict";
+
// The deferred used on DOM ready
var readyList = jQuery.Deferred();
diff --git a/src/core/support.js b/src/core/support.js
index 3857a252e..13ae02f08 100644
--- a/src/core/support.js
+++ b/src/core/support.js
@@ -3,6 +3,8 @@ define( [
"../var/support"
], function( document, support ) {
+"use strict";
+
// Support: Safari 8 only
// In Safari 8 documents created via document.implementation.createHTMLDocument
// collapse sibling forms: the second one becomes a child of the first one.
diff --git a/src/core/var/rsingleTag.js b/src/core/var/rsingleTag.js
index 1ddf95ed4..4d6e8a0ac 100644
--- a/src/core/var/rsingleTag.js
+++ b/src/core/var/rsingleTag.js
@@ -1,4 +1,5 @@
define( function() {
+ "use strict";
// Match a standalone tag
return ( /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i );