mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
No ticket. Restore checking individual src/**/*.js files by jsHint.
This commit is contained in:
parent
1f16b16859
commit
1a25f21dc3
@ -1,3 +1,5 @@
|
|||||||
|
src/intro.js
|
||||||
|
src/outro.js
|
||||||
test/qunit/**
|
test/qunit/**
|
||||||
test/data/jquery-1.9.1.ajax_xhr.min.js
|
test/data/jquery-1.9.1.ajax_xhr.min.js
|
||||||
test/data/badcall.js
|
test/data/badcall.js
|
||||||
|
@ -55,6 +55,12 @@ module.exports = function( grunt ) {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
jshint: {
|
jshint: {
|
||||||
|
src: {
|
||||||
|
src: [ "src/**/*.js" ],
|
||||||
|
options: {
|
||||||
|
jshintrc: "src/.jshintrc"
|
||||||
|
}
|
||||||
|
},
|
||||||
dist: {
|
dist: {
|
||||||
src: [ "dist/jquery.js" ],
|
src: [ "dist/jquery.js" ],
|
||||||
options: srcHintOptions
|
options: srcHintOptions
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
define(function() {
|
define(function() {
|
||||||
return /\?/;
|
return (/\?/);
|
||||||
});
|
});
|
@ -1,3 +1,3 @@
|
|||||||
define(function() {
|
define(function() {
|
||||||
return /^(?:checkbox|radio)$/i;
|
return (/^(?:checkbox|radio)$/i);
|
||||||
});
|
});
|
@ -60,7 +60,8 @@ jQuery.offset = {
|
|||||||
curOffset = curElem.offset();
|
curOffset = curElem.offset();
|
||||||
curCSSTop = jQuery.css( elem, "top" );
|
curCSSTop = jQuery.css( elem, "top" );
|
||||||
curCSSLeft = jQuery.css( elem, "left" );
|
curCSSLeft = jQuery.css( elem, "left" );
|
||||||
calculatePosition = ( position === "absolute" || position === "fixed" ) && ( curCSSTop + curCSSLeft ).indexOf("auto") > -1;
|
calculatePosition = ( position === "absolute" || position === "fixed" ) &&
|
||||||
|
( curCSSTop + curCSSLeft ).indexOf("auto") > -1;
|
||||||
|
|
||||||
// Need to be able to calculate position if either top or left is auto and position is either absolute or fixed
|
// Need to be able to calculate position if either top or left is auto and position is either absolute or fixed
|
||||||
if ( calculatePosition ) {
|
if ( calculatePosition ) {
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
define(function() {
|
define(function() {
|
||||||
return /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source;
|
return (/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/).source;
|
||||||
});
|
});
|
@ -1,3 +1,3 @@
|
|||||||
define(function() {
|
define(function() {
|
||||||
return /\S+/g;
|
return (/\S+/g);
|
||||||
});
|
});
|
Loading…
Reference in New Issue
Block a user