mirror of
https://github.com/jquery/jquery.git
synced 2026-02-01 21:45:03 -05:00
Build: Put all AMD modules in "src/" in strict mode
Fixes gh-3073
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -3,6 +3,8 @@ define( [
|
||||
"../var/rcssNum"
|
||||
], function( jQuery, rcssNum ) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function adjustCSS( elem, prop, valueParts, tween ) {
|
||||
var adjusted,
|
||||
scale = 1,
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -3,6 +3,8 @@ define( [
|
||||
"../selector"
|
||||
], function( jQuery ) {
|
||||
|
||||
"use strict";
|
||||
|
||||
jQuery.expr.pseudos.hidden = function( elem ) {
|
||||
return !jQuery.expr.pseudos.visible( elem );
|
||||
};
|
||||
|
||||
@@ -4,6 +4,8 @@ define( [
|
||||
"../css/var/isHiddenWithinTree"
|
||||
], function( jQuery, dataPriv, isHiddenWithinTree ) {
|
||||
|
||||
"use strict";
|
||||
|
||||
var defaultDisplayMap = {};
|
||||
|
||||
function getDefaultDisplay( elem ) {
|
||||
|
||||
@@ -5,6 +5,8 @@ define( [
|
||||
"../var/support"
|
||||
], function( jQuery, document, documentElement, support ) {
|
||||
|
||||
"use strict";
|
||||
|
||||
( function() {
|
||||
|
||||
// Executing both pixelPosition & boxSizingReliable tests require only one layout
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
define( function() {
|
||||
"use strict";
|
||||
|
||||
return [ "Top", "Right", "Bottom", "Left" ];
|
||||
} );
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
define( function() {
|
||||
"use strict";
|
||||
|
||||
return function( elem ) {
|
||||
|
||||
// Support: IE <=11 only, Firefox <=30 (#15098, #14150)
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
define( function() {
|
||||
"use strict";
|
||||
|
||||
return ( /^margin/ );
|
||||
} );
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
define( [
|
||||
"../../var/pnum"
|
||||
], function( pnum ) {
|
||||
"use strict";
|
||||
|
||||
return new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" );
|
||||
} );
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user