diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ajax.js | 12 | ||||
-rw-r--r-- | src/ajax/xhr.js | 4 | ||||
-rw-r--r-- | src/attributes/prop.js | 2 | ||||
-rw-r--r-- | src/attributes/val.js | 2 | ||||
-rw-r--r-- | src/core/init.js | 4 | ||||
-rw-r--r-- | src/core/ready-no-deferred.js | 2 | ||||
-rw-r--r-- | src/core/ready.js | 2 | ||||
-rw-r--r-- | src/css.js | 8 | ||||
-rw-r--r-- | src/css/cssCamelCase.js | 2 | ||||
-rw-r--r-- | src/data.js | 2 | ||||
-rw-r--r-- | src/data/Data.js | 2 | ||||
-rw-r--r-- | src/event.js | 6 | ||||
-rw-r--r-- | src/event/trigger.js | 6 | ||||
-rw-r--r-- | src/exports/global.js | 4 | ||||
-rw-r--r-- | src/manipulation.js | 2 | ||||
-rw-r--r-- | src/manipulation/_evalUrl.js | 2 | ||||
-rw-r--r-- | src/manipulation/buildFragment.js | 2 | ||||
-rw-r--r-- | src/manipulation/getAll.js | 2 | ||||
-rw-r--r-- | src/selector.js | 11 | ||||
-rw-r--r-- | src/wrapper.js | 2 |
20 files changed, 41 insertions, 38 deletions
diff --git a/src/ajax.js b/src/ajax.js index 3921de6b5..dc9fb242b 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -17,7 +17,7 @@ var rantiCache = /([?&])_=[^&]*/, rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg, - // #7653, #8125, #8152: local protocol detection + // trac-7653, trac-8125, trac-8152: local protocol detection rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, rnoContent = /^(?:GET|HEAD)$/, rprotocol = /^\/\//, @@ -40,7 +40,7 @@ var */ transports = {}, - // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression + // Avoid comment-prolog char sequence (trac-10098); must appease lint and evade compression allTypes = "*/".concat( "*" ), // Anchor tag for parsing the document origin @@ -111,7 +111,7 @@ function inspectPrefiltersOrTransports( structure, options, originalOptions, jqX // A special extend for ajax options // that takes "flat" options (not to be deep extended) -// Fixes #9887 +// Fixes trac-9887 function ajaxExtend( target, src ) { var key, deep, flatOptions = jQuery.ajaxSettings.flatOptions || {}; @@ -528,12 +528,12 @@ jQuery.extend( { deferred.promise( jqXHR ); // Add protocol if not provided (prefilters might expect it) - // Handle falsy url in the settings object (#10093: consistency with old signature) + // Handle falsy url in the settings object (trac-10093: consistency with old signature) // We also use the url parameter if available s.url = ( ( url || s.url || location.href ) + "" ) .replace( rprotocol, location.protocol + "//" ); - // Alias method option to type as per ticket #12004 + // Alias method option to type as per ticket trac-12004 s.type = options.method || options.type || s.method || s.type; // Extract dataTypes list @@ -605,7 +605,7 @@ jQuery.extend( { if ( s.data && ( s.processData || typeof s.data === "string" ) ) { cacheURL += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data; - // #9682: remove data so that it's not used in an eventual retry + // trac-9682: remove data so that it's not used in an eventual retry delete s.data; } diff --git a/src/ajax/xhr.js b/src/ajax/xhr.js index 2c9bc8125..a024bb236 100644 --- a/src/ajax/xhr.js +++ b/src/ajax/xhr.js @@ -66,7 +66,7 @@ jQuery.ajaxTransport( function( options ) { } else if ( type === "error" ) { complete( - // File: protocol always yields status 0; see #8605, #14207 + // File: protocol always yields status 0; see trac-8605, trac-14207 xhr.status, xhr.statusText ); @@ -99,7 +99,7 @@ jQuery.ajaxTransport( function( options ) { xhr.send( options.hasContent && options.data || null ); } catch ( e ) { - // #14683: Only rethrow if this hasn't been notified as an error yet + // trac-14683: Only rethrow if this hasn't been notified as an error yet if ( callback ) { throw e; } diff --git a/src/attributes/prop.js b/src/attributes/prop.js index 453d4c7cd..e80532eb6 100644 --- a/src/attributes/prop.js +++ b/src/attributes/prop.js @@ -60,7 +60,7 @@ jQuery.extend( { // elem.tabIndex doesn't always return the // correct value when it hasn't been explicitly set // https://web.archive.org/web/20141116233347/http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/ - // Use proper attribute retrieval(#12072) + // Use proper attribute retrieval (trac-12072) var tabindex = elem.getAttribute( "tabindex" ); if ( tabindex ) { diff --git a/src/attributes/val.js b/src/attributes/val.js index f200f97ee..536ed88a4 100644 --- a/src/attributes/val.js +++ b/src/attributes/val.js @@ -149,7 +149,7 @@ if ( isIE ) { val : // Support: IE <=10 - 11+ - // option.text throws exceptions (#14686, #14858) + // option.text throws exceptions (trac-14686, trac-14858) // Strip and collapse whitespace // https://html.spec.whatwg.org/#strip-and-collapse-whitespace stripAndCollapse( jQuery.text( elem ) ); diff --git a/src/core/init.js b/src/core/init.js index 8fc24d8dd..9fea5e6d4 100644 --- a/src/core/init.js +++ b/src/core/init.js @@ -10,8 +10,8 @@ import "../traversing/findFilter.js"; var rootjQuery, // A simple way to check for HTML strings - // Prioritize #id over <tag> to avoid XSS via location.hash (#9521) - // Strict HTML recognition (#11290: must start with <) + // Prioritize #id over <tag> to avoid XSS via location.hash (trac-9521) + // Strict HTML recognition (trac-11290: must start with <) // Shortcut simple #id case for speed rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/, diff --git a/src/core/ready-no-deferred.js b/src/core/ready-no-deferred.js index 51f6d7f6b..17aaf5bcd 100644 --- a/src/core/ready-no-deferred.js +++ b/src/core/ready-no-deferred.js @@ -25,7 +25,7 @@ jQuery.extend( { isReady: false, // A counter to track how many items to wait for before - // the ready event fires. See #6781 + // the ready event fires. See trac-6781 readyWait: 1, ready: function( wait ) { diff --git a/src/core/ready.js b/src/core/ready.js index d6c507e41..88dcc3433 100644 --- a/src/core/ready.js +++ b/src/core/ready.js @@ -28,7 +28,7 @@ jQuery.extend( { isReady: false, // A counter to track how many items to wait for before - // the ready event fires. See #6781 + // the ready event fires. See trac-6781 readyWait: 1, // Handle when the DOM is ready diff --git a/src/css.js b/src/css.js index b50aa3d91..29dca0e42 100644 --- a/src/css.js +++ b/src/css.js @@ -220,15 +220,15 @@ jQuery.extend( { if ( value !== undefined ) { type = typeof value; - // Convert "+=" or "-=" to relative numbers (#7345) + // Convert "+=" or "-=" to relative numbers (trac-7345) if ( type === "string" && ( ret = rcssNum.exec( value ) ) && ret[ 1 ] ) { value = adjustCSS( elem, name, ret ); - // Fixes bug #9237 + // Fixes bug trac-9237 type = "number"; } - // Make sure that null and NaN values aren't set (#7116) + // Make sure that null and NaN values aren't set (trac-7116) if ( value == null || value !== value ) { return; } @@ -239,7 +239,7 @@ jQuery.extend( { } // Support: IE <=9 - 11+ - // background-* props of a cloned element affect the source element (#8908) + // background-* props of a cloned element affect the source element (trac-8908) if ( isIE && value === "" && name.indexOf( "background" ) === 0 ) { style[ name ] = "inherit"; } diff --git a/src/css/cssCamelCase.js b/src/css/cssCamelCase.js index a3d5fe628..c75dcd950 100644 --- a/src/css/cssCamelCase.js +++ b/src/css/cssCamelCase.js @@ -6,7 +6,7 @@ var rmsPrefix = /^-ms-/; // Convert dashed to camelCase, handle vendor prefixes. // Used by the css & effects modules. // Support: IE <=9 - 11+ -// Microsoft forgot to hump their vendor prefix (#9572) +// Microsoft forgot to hump their vendor prefix (trac-9572) function cssCamelCase( string ) { return camelCase( string.replace( rmsPrefix, "ms-" ) ); } diff --git a/src/data.js b/src/data.js index cd658b386..e3e8eabe1 100644 --- a/src/data.js +++ b/src/data.js @@ -105,7 +105,7 @@ jQuery.fn.extend( { while ( i-- ) { // Support: IE 11+ - // The attrs elements can be null (#14894) + // The attrs elements can be null (trac-14894) if ( attrs[ i ] ) { name = attrs[ i ].name; if ( name.indexOf( "data-" ) === 0 ) { diff --git a/src/data/Data.js b/src/data/Data.js index a5eb09089..8c9e1f9f8 100644 --- a/src/data/Data.js +++ b/src/data/Data.js @@ -21,7 +21,7 @@ Data.prototype = { value = Object.create( null ); // We can accept data for non-element nodes in modern browsers, - // but we should not, see #8335. + // but we should not, see trac-8335. // Always return an empty object. if ( acceptData( owner ) ) { diff --git a/src/event.js b/src/event.js index 4b6eb00e4..0c66d3856 100644 --- a/src/event.js +++ b/src/event.js @@ -369,15 +369,15 @@ jQuery.event = { for ( ; cur !== this; cur = cur.parentNode || this ) { - // Don't check non-elements (#13208) - // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764) + // Don't check non-elements (trac-13208) + // Don't process clicks on disabled elements (trac-6911, trac-8165, trac-11382, trac-11764) if ( cur.nodeType === 1 && !( event.type === "click" && cur.disabled === true ) ) { matchedHandlers = []; matchedSelectors = {}; for ( i = 0; i < delegateCount; i++ ) { handleObj = handlers[ i ]; - // Don't conflict with Object.prototype properties (#13203) + // Don't conflict with Object.prototype properties (trac-13203) sel = handleObj.selector + " "; if ( matchedSelectors[ sel ] === undefined ) { diff --git a/src/event/trigger.js b/src/event/trigger.js index 7919a5013..5fad460e1 100644 --- a/src/event/trigger.js +++ b/src/event/trigger.js @@ -71,8 +71,8 @@ jQuery.extend( jQuery.event, { return; } - // Determine event propagation path in advance, per W3C events spec (#9951) - // Bubble up to document, then to window; watch for a global ownerDocument var (#9724) + // Determine event propagation path in advance, per W3C events spec (trac-9951) + // Bubble up to document, then to window; watch for a global ownerDocument var (trac-9724) if ( !onlyHandlers && !special.noBubble && !isWindow( elem ) ) { bubbleType = special.delegateType || type; @@ -124,7 +124,7 @@ jQuery.extend( jQuery.event, { acceptData( elem ) ) { // Call a native DOM method on the target with the same name as the event. - // Don't do default actions on window, that's where global variables be (#6170) + // Don't do default actions on window, that's where global variables be (trac-6170) if ( ontype && typeof elem[ type ] === "function" && !isWindow( elem ) ) { // Don't re-trigger an onFOO event when we call its FOO() method diff --git a/src/exports/global.js b/src/exports/global.js index b49496fbb..965a4b400 100644 --- a/src/exports/global.js +++ b/src/exports/global.js @@ -21,8 +21,8 @@ jQuery.noConflict = function( deep ) { }; // Expose jQuery and $ identifiers, even in AMD -// (#7102#comment:10, https://github.com/jquery/jquery/pull/557) -// and CommonJS for browser emulators (#13566) +// (trac-7102#comment:10, gh-557) +// and CommonJS for browser emulators (trac-13566) if ( typeof noGlobal === "undefined" ) { window.jQuery = window.$ = jQuery; } diff --git a/src/manipulation.js b/src/manipulation.js index 19c60fcbc..cad13bd92 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -120,7 +120,7 @@ function domManip( collection, args, callback, ignored ) { // Use the original fragment for the last item // instead of the first because it can end up - // being emptied incorrectly in certain situations (#8070). + // being emptied incorrectly in certain situations (trac-8070). for ( ; i < l; i++ ) { node = fragment; diff --git a/src/manipulation/_evalUrl.js b/src/manipulation/_evalUrl.js index 8a8d63d9d..1af889ddc 100644 --- a/src/manipulation/_evalUrl.js +++ b/src/manipulation/_evalUrl.js @@ -4,7 +4,7 @@ jQuery._evalUrl = function( url, options, doc ) { return jQuery.ajax( { url: url, - // Make this explicit, since user can override this through ajaxSetup (#11264) + // Make this explicit, since user can override this through ajaxSetup (trac-11264) type: "GET", dataType: "script", cache: true, diff --git a/src/manipulation/buildFragment.js b/src/manipulation/buildFragment.js index d6f8e5783..dd0d673e6 100644 --- a/src/manipulation/buildFragment.js +++ b/src/manipulation/buildFragment.js @@ -52,7 +52,7 @@ function buildFragment( elems, context, scripts, selection, ignored ) { // Remember the top-level container tmp = fragment.firstChild; - // Ensure the created nodes are orphaned (#12392) + // Ensure the created nodes are orphaned (trac-12392) tmp.textContent = ""; } } diff --git a/src/manipulation/getAll.js b/src/manipulation/getAll.js index 995d22c0c..f4943dfe4 100644 --- a/src/manipulation/getAll.js +++ b/src/manipulation/getAll.js @@ -4,7 +4,7 @@ import nodeName from "../core/nodeName.js"; function getAll( context, tag ) { // Support: IE <=9 - 11+ - // Use typeof to avoid zero-argument method invocation on host objects (#15151) + // Use typeof to avoid zero-argument method invocation on host objects (trac-15151) var ret; if ( typeof context.getElementsByTagName !== "undefined" ) { diff --git a/src/selector.js b/src/selector.js index 4b9c8b6ed..bc60e61e4 100644 --- a/src/selector.js +++ b/src/selector.js @@ -282,7 +282,8 @@ function createCache() { function cache( key, value ) { - // Use (key + " ") to avoid collision with native prototype properties (see Issue #157) + // Use (key + " ") to avoid collision with native prototype properties + // (see https://github.com/jquery/sizzle/issues/157) if ( keys.push( key + " " ) > Expr.cacheLength ) { // Only keep the most recent entries @@ -432,7 +433,7 @@ function setDocument( node ) { documentIsHTML = !jQuery.isXMLDoc( document ); // Support: IE 9 - 11+ - // Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936) + // Accessing iframe documents after unload throws "permission denied" errors (see trac-13936) // Support: IE 11+ // IE sometimes throws a "Permission denied" error when strict-comparing // two documents; shallow comparisons work. @@ -843,7 +844,8 @@ Expr = jQuery.expr = { input[ 0 ] = elem; matcher( input, null, xml, results ); - // Don't keep the element (issue #299) + // Don't keep the element + // (see https://github.com/jquery/sizzle/issues/299) input[ 0 ] = null; return !results.pop(); }; @@ -1348,7 +1350,8 @@ function matcherFromTokens( tokens ) { matchContext( elem, context, xml ) : matchAnyContext( elem, context, xml ) ); - // Avoid hanging onto element (issue #299) + // Avoid hanging onto element + // (see https://github.com/jquery/sizzle/issues/299) checkContext = null; return ret; } ]; diff --git a/src/wrapper.js b/src/wrapper.js index 8a0b2a1ca..8a3dc53e0 100644 --- a/src/wrapper.js +++ b/src/wrapper.js @@ -20,7 +20,7 @@ // (such as Node.js), expose a factory as module.exports. // This accentuates the need for the creation of a real `window`. // e.g. var jQuery = require("jquery")(window); - // See ticket #14549 for more info. + // See ticket trac-14549 for more info. module.exports = global.document ? factory( global, true ) : function( w ) { |