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,5 +1,7 @@
define( [
"./fnToString"
], function( fnToString ) {
"use strict";
return fnToString.call( Object );
} );

View File

@@ -1,3 +1,5 @@
define( function() {
"use strict";
return [];
} );

View File

@@ -1,4 +1,5 @@
define( function() {
"use strict";
// [[Class]] -> type pairs
return {};

View File

@@ -1,5 +1,7 @@
define( [
"./arr"
], function( arr ) {
"use strict";
return arr.concat;
} );

View File

@@ -1,3 +1,5 @@
define( function() {
"use strict";
return window.document;
} );

View File

@@ -1,5 +1,7 @@
define( [
"./document"
], function( document ) {
"use strict";
return document.documentElement;
} );

View File

@@ -1,5 +1,7 @@
define( [
"./hasOwn"
], function( hasOwn ) {
"use strict";
return hasOwn.toString;
} );

View File

@@ -1,3 +1,5 @@
define( function() {
"use strict";
return Object.getPrototypeOf;
} );

View File

@@ -1,5 +1,7 @@
define( [
"./class2type"
], function( class2type ) {
"use strict";
return class2type.hasOwnProperty;
} );

View File

@@ -1,5 +1,7 @@
define( [
"./arr"
], function( arr ) {
"use strict";
return arr.indexOf;
} );

View File

@@ -1,3 +1,5 @@
define( function() {
"use strict";
return ( /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ ).source;
} );

View File

@@ -1,5 +1,7 @@
define( [
"./arr"
], function( arr ) {
"use strict";
return arr.push;
} );

View File

@@ -2,6 +2,8 @@ define( [
"../var/pnum"
], function( pnum ) {
"use strict";
return new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" );
} );

View File

@@ -1,3 +1,5 @@
define( function() {
"use strict";
return ( /\S+/g );
} );

View File

@@ -1,5 +1,7 @@
define( [
"./arr"
], function( arr ) {
"use strict";
return arr.slice;
} );

View File

@@ -1,4 +1,5 @@
define( function() {
"use strict";
// All support tests are defined in their respective modules.
return {};

View File

@@ -1,5 +1,7 @@
define( [
"./class2type"
], function( class2type ) {
"use strict";
return class2type.toString;
} );