Build: Put all AMD modules in "src/" in strict mode

Fixes gh-3073
This commit is contained in:
Michał Gołębiowski
2016-04-25 20:25:08 +02:00
parent e2d1142c2e
commit 305f193aa5
99 changed files with 195 additions and 0 deletions

View File

@@ -1,6 +1,8 @@
define( [
"../var/document"
], function( document ) {
"use strict";
function DOMEval( code, doc ) {
doc = doc || document;

View File

@@ -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 ) {

View File

@@ -6,6 +6,8 @@ define( [
"../traversing/findFilter"
], function( jQuery, document, rsingleTag ) {
"use strict";
// A central reference to the root jQuery(document)
var rootjQuery,

View File

@@ -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

View File

@@ -3,6 +3,8 @@ define( [
"../var/document"
], function( jQuery, document ) {
"use strict";
var readyCallbacks = [],
readyFiring = false,
whenReady = function( fn ) {

View File

@@ -4,6 +4,8 @@ define( [
"../deferred"
], function( jQuery, document ) {
"use strict";
// The deferred used on DOM ready
var readyList = jQuery.Deferred();

View File

@@ -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.

View File

@@ -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 );