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( function() {
"use strict";
function addGetHookIf( conditionFn, hookFn ) {
// Define the hook, we'll check on the first run if it's really needed.

View File

@@ -3,6 +3,8 @@ define( [
"../var/rcssNum"
], function( jQuery, rcssNum ) {
"use strict";
function adjustCSS( elem, prop, valueParts, tween ) {
var adjusted,
scale = 1,

View File

@@ -7,6 +7,8 @@ define( [
"../selector" // Get jQuery.contains
], function( jQuery, rnumnonpx, rmargin, getStyles, support ) {
"use strict";
function curCSS( elem, name, computed ) {
var width, minWidth, maxWidth, ret,
style = elem.style;

View File

@@ -3,6 +3,8 @@ define( [
"../selector"
], function( jQuery ) {
"use strict";
jQuery.expr.pseudos.hidden = function( elem ) {
return !jQuery.expr.pseudos.visible( elem );
};

View File

@@ -4,6 +4,8 @@ define( [
"../css/var/isHiddenWithinTree"
], function( jQuery, dataPriv, isHiddenWithinTree ) {
"use strict";
var defaultDisplayMap = {};
function getDefaultDisplay( elem ) {

View File

@@ -5,6 +5,8 @@ define( [
"../var/support"
], function( jQuery, document, documentElement, support ) {
"use strict";
( function() {
// Executing both pixelPosition & boxSizingReliable tests require only one layout

View File

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

View File

@@ -1,4 +1,6 @@
define( function() {
"use strict";
return function( elem ) {
// Support: IE <=11 only, Firefox <=30 (#15098, #14150)

View File

@@ -4,6 +4,7 @@ define( [
// css is assumed
], function( jQuery ) {
"use strict";
// isHiddenWithinTree reports if an element has a non-"none" display style (inline and/or
// through the CSS cascade), which is useful in deciding whether or not to make it visible.

View File

@@ -1,3 +1,5 @@
define( function() {
"use strict";
return ( /^margin/ );
} );

View File

@@ -1,5 +1,7 @@
define( [
"../../var/pnum"
], function( pnum ) {
"use strict";
return new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" );
} );

View File

@@ -1,5 +1,7 @@
define( function() {
"use strict";
// A method for quickly swapping in/out CSS properties to get correct calculations.
return function( elem, options, callback, args ) {
var ret, name,