diff options
author | Mike Sherov <mike.sherov@gmail.com> | 2011-12-08 20:42:47 -0500 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2011-12-08 21:04:57 -0500 |
commit | 98386cfd775fdfa7837ccbec173b04f1e6d57896 (patch) | |
tree | 74783699ba88a0bf17bfb88e8b3e8141b7c868fe /src | |
parent | d6500cc8ded8d3d02e19a3ab831b6b9cf43e82ae (diff) | |
download | jquery-98386cfd775fdfa7837ccbec173b04f1e6d57896.tar.gz jquery-98386cfd775fdfa7837ccbec173b04f1e6d57896.zip |
Fix #10692. JSLint is dead! Long live JSHint!
Still needs this sizzle PR: https://github.com/jquery/sizzle/pull/82
Diffstat (limited to 'src')
-rw-r--r-- | src/ajax.js | 24 | ||||
-rw-r--r-- | src/ajax/xhr.js | 10 | ||||
-rw-r--r-- | src/event.js | 6 | ||||
-rw-r--r-- | src/offset.js | 2 | ||||
-rw-r--r-- | src/traversing.js | 6 |
5 files changed, 24 insertions, 24 deletions
diff --git a/src/ajax.js b/src/ajax.js index 3a384db64..76e9ef443 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -21,21 +21,21 @@ var r20 = /%20/g, _load = jQuery.fn.load, /* Prefilters - * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example) - * 2) These are called: - * - BEFORE asking for a transport - * - AFTER param serialization (s.data is a string if s.processData is true) - * 3) key is the dataType - * 4) the catchall symbol "*" can be used - * 5) execution will start with transport dataType and THEN continue down to "*" if needed - */ + * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example) + * 2) These are called: + * - BEFORE asking for a transport + * - AFTER param serialization (s.data is a string if s.processData is true) + * 3) key is the dataType + * 4) the catchall symbol "*" can be used + * 5) execution will start with transport dataType and THEN continue down to "*" if needed + */ prefilters = {}, /* Transports bindings - * 1) key is the dataType - * 2) the catchall symbol "*" can be used - * 3) selection will start with transport dataType and THEN go to "*" if needed - */ + * 1) key is the dataType + * 2) the catchall symbol "*" can be used + * 3) selection will start with transport dataType and THEN go to "*" if needed + */ transports = {}, // Document location diff --git a/src/ajax/xhr.js b/src/ajax/xhr.js index a87c32392..d4d8ecfc9 100644 --- a/src/ajax/xhr.js +++ b/src/ajax/xhr.js @@ -27,11 +27,11 @@ function createActiveXHR() { // (This is still attached to ajaxSettings for backward compatibility) jQuery.ajaxSettings.xhr = window.ActiveXObject ? /* Microsoft failed to properly - * implement the XMLHttpRequest in IE7 (can't request local files), - * so we use the ActiveXObject when it is available - * Additionally XMLHttpRequest can be disabled in IE7/IE8 so - * we need a fallback. - */ + * implement the XMLHttpRequest in IE7 (can't request local files), + * so we use the ActiveXObject when it is available + * Additionally XMLHttpRequest can be disabled in IE7/IE8 so + * we need a fallback. + */ function() { return !this.isLocal && createStandardXHR() || createActiveXHR(); } : diff --git a/src/event.js b/src/event.js index 483d9062c..f33e8fa32 100644 --- a/src/event.js +++ b/src/event.js @@ -185,9 +185,9 @@ jQuery.event = { handleObj = eventType[ j ]; if ( ( mappedTypes || origType === handleObj.origType ) && - ( !handler || handler.guid === handleObj.guid ) && - ( !namespaces || namespaces.test( handleObj.namespace ) ) && - ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) { + ( !handler || handler.guid === handleObj.guid ) && + ( !namespaces || namespaces.test( handleObj.namespace ) ) && + ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) { eventType.splice( j--, 1 ); if ( handleObj.selector ) { diff --git a/src/offset.js b/src/offset.js index 6433a5b7a..a8b80fabe 100644 --- a/src/offset.js +++ b/src/offset.js @@ -227,7 +227,7 @@ jQuery.each( {scrollLeft: "pageXOffset", scrollTop: "pageYOffset"}, function( me if ( win ) { win.scrollTo( !top ? val : jQuery( win ).scrollLeft(), - top ? val : jQuery( win ).scrollTop() + top ? val : jQuery( win ).scrollTop() ); } else { diff --git a/src/traversing.js b/src/traversing.js index a62bbfeb6..f06cfd92f 100644 --- a/src/traversing.js +++ b/src/traversing.js @@ -73,11 +73,11 @@ jQuery.fn.extend({ }, is: function( selector ) { - return !!selector && ( + return !!selector && ( typeof selector === "string" ? // If this is a positional selector, check membership in the returned set // so $("p:first").is("p:last") won't return true for a doc with two "p". - POS.test( selector ) ? + POS.test( selector ) ? jQuery( selector, this.context ).index( this[0] ) >= 0 : jQuery.filter( selector, this ).length > 0 : this.filter( selector ).length > 0 ); @@ -85,7 +85,7 @@ jQuery.fn.extend({ closest: function( selectors, context ) { var ret = [], i, l, cur = this[0]; - + // Array (deprecated as of jQuery 1.7) if ( jQuery.isArray( selectors ) ) { var level = 1; |