No ticket. Restore checking individual src/**/*.js files by jsHint.

parent 6987220d
src/intro.js
src/outro.js
test/qunit/**
test/data/jquery-1.9.1.ajax_xhr.min.js
test/data/badcall.js
......
......@@ -53,6 +53,12 @@ module.exports = function( grunt ) {
}
},
jshint: {
src: {
src: [ "src/**/*.js" ],
options: {
jshintrc: "src/.jshintrc"
}
},
dist: {
src: [ "dist/jquery.js" ],
options: srcHintOptions
......
define(function() {
return /\?/;
return (/\?/);
});
define([
"../core",
"../selector",
"../effects",
"../effects"
], function( jQuery ) {
jQuery.expr.filters.animated = function( elem ) {
return jQuery.grep(jQuery.timers, function( fn ) {
......
define(function() {
return /^(?:checkbox|radio)$/i;
return (/^(?:checkbox|radio)$/i);
});
......@@ -47,19 +47,21 @@ jQuery.fn.offset = function( options ) {
jQuery.offset = {
setOffset: function( elem, options, i ) {
var position = jQuery.css( elem, "position" );
var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
position = jQuery.css( elem, "position" ),
curElem = jQuery( elem ),
props = {};
// set position first, in-case top/left are set even on static elem
if ( position === "static" ) {
elem.style.position = "relative";
}
var curElem = jQuery( elem ),
curOffset = curElem.offset(),
curCSSTop = jQuery.css( elem, "top" ),
curCSSLeft = jQuery.css( elem, "left" ),
calculatePosition = ( position === "absolute" || position === "fixed" ) && jQuery.inArray("auto", [curCSSTop, curCSSLeft]) > -1,
props = {}, curPosition = {}, curTop, curLeft;
curOffset = curElem.offset();
curCSSTop = jQuery.css( elem, "top" );
curCSSLeft = jQuery.css( elem, "left" );
calculatePosition = ( position === "absolute" || position === "fixed" ) &&
jQuery.inArray("auto", [curCSSTop, curCSSLeft]) > -1;
// need to be able to calculate position if either top or left is auto and position is either absolute or fixed
if ( calculatePosition ) {
......
define(function() {
return /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source;
return (/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/).source;
});
define(function() {
return /\S+/g;
return (/\S+/g);
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment