Dotclear

Changeset 3528:6c3b56091267 for admin


Ignore:
Timestamp:
02/11/17 12:34:46 (9 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Upgrade jQuery 2.2.0 to 2.2.4 (last release of jQuery 2.n branche)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/js/jquery/jquery.js

    r3178 r3528  
    11/*! 
    2  * jQuery JavaScript Library v2.2.0 
     2 * jQuery JavaScript Library v2.2.4 
    33 * http://jquery.com/ 
    44 * 
     
    1010 * http://jquery.org/license 
    1111 * 
    12  * Date: 2016-01-08T20:02Z 
     12 * Date: 2016-05-20T17:23Z 
    1313 */ 
    1414 
     
    6666 
    6767var 
    68      version = "2.2.0", 
     68     version = "2.2.4", 
    6969 
    7070     // Define a local copy of jQuery 
     
    277277 
    278278     isPlainObject: function( obj ) { 
     279          var key; 
    279280 
    280281          // Not plain objects: 
     
    286287          } 
    287288 
     289          // Not own constructor property must be Object 
    288290          if ( obj.constructor && 
    289                     !hasOwn.call( obj.constructor.prototype, "isPrototypeOf" ) ) { 
     291                    !hasOwn.call( obj, "constructor" ) && 
     292                    !hasOwn.call( obj.constructor.prototype || {}, "isPrototypeOf" ) ) { 
    290293               return false; 
    291294          } 
    292295 
    293           // If the function hasn't returned already, we're confident that 
    294           // |obj| is a plain object, created by {} or constructed with new Object 
    295           return true; 
     296          // Own properties are enumerated firstly, so to speed up, 
     297          // if last one is own, then all properties are own 
     298          for ( key in obj ) {} 
     299 
     300          return key === undefined || hasOwn.call( obj, key ); 
    296301     }, 
    297302 
     
    44804485          fn = returnFalse; 
    44814486     } else if ( !fn ) { 
    4482           return this; 
     4487          return elem; 
    44834488     } 
    44844489 
     
    50025007     isPropagationStopped: returnFalse, 
    50035008     isImmediatePropagationStopped: returnFalse, 
     5009     isSimulated: false, 
    50045010 
    50055011     preventDefault: function() { 
     
    50085014          this.isDefaultPrevented = returnTrue; 
    50095015 
    5010           if ( e ) { 
     5016          if ( e && !this.isSimulated ) { 
    50115017               e.preventDefault(); 
    50125018          } 
     
    50175023          this.isPropagationStopped = returnTrue; 
    50185024 
    5019           if ( e ) { 
     5025          if ( e && !this.isSimulated ) { 
    50205026               e.stopPropagation(); 
    50215027          } 
     
    50265032          this.isImmediatePropagationStopped = returnTrue; 
    50275033 
    5028           if ( e ) { 
     5034          if ( e && !this.isSimulated ) { 
    50295035               e.stopImmediatePropagation(); 
    50305036          } 
     
    51295135     rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g; 
    51305136 
     5137// Manipulating tables requires a tbody 
    51315138function manipulationTarget( elem, content ) { 
    5132      if ( jQuery.nodeName( elem, "table" ) && 
    5133           jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) { 
    5134  
    5135           return elem.getElementsByTagName( "tbody" )[ 0 ] || elem; 
    5136      } 
    5137  
    5138      return elem; 
     5139     return jQuery.nodeName( elem, "table" ) && 
     5140          jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ? 
     5141 
     5142          elem.getElementsByTagName( "tbody" )[ 0 ] || 
     5143               elem.appendChild( elem.ownerDocument.createElement( "tbody" ) ) : 
     5144          elem; 
    51395145} 
    51405146 
     
    56435649          var view = elem.ownerDocument.defaultView; 
    56445650 
    5645           if ( !view.opener ) { 
     5651          if ( !view || !view.opener ) { 
    56465652               view = window; 
    56475653          } 
     
    57925798 
    57935799     computed = computed || getStyles( elem ); 
     5800     ret = computed ? computed.getPropertyValue( name ) || computed[ name ] : undefined; 
     5801 
     5802     // Support: Opera 12.1x only 
     5803     // Fall back to style even without computed 
     5804     // computed is undefined for elems on document fragments 
     5805     if ( ( ret === "" || ret === undefined ) && !jQuery.contains( elem.ownerDocument, elem ) ) { 
     5806          ret = jQuery.style( elem, name ); 
     5807     } 
    57945808 
    57955809     // Support: IE9 
    57965810     // getPropertyValue is only needed for .css('filter') (#12537) 
    57975811     if ( computed ) { 
    5798           ret = computed.getPropertyValue( name ) || computed[ name ]; 
    5799  
    5800           if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) { 
    5801                ret = jQuery.style( elem, name ); 
    5802           } 
    58035812 
    58045813          // A tribute to the "awesome hack by Dean Edwards" 
     
    59535962          styles = getStyles( elem ), 
    59545963          isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box"; 
    5955  
    5956      // Support: IE11 only 
    5957      // In IE 11 fullscreen elements inside of an iframe have 
    5958      // 100x too small dimensions (gh-1764). 
    5959      if ( document.msFullscreenElement && window.top !== window ) { 
    5960  
    5961           // Support: IE11 only 
    5962           // Running getBoundingClientRect on a disconnected node 
    5963           // in IE throws an error. 
    5964           if ( elem.getClientRects().length ) { 
    5965                val = Math.round( elem.getBoundingClientRect()[ name ] * 100 ); 
    5966           } 
    5967      } 
    59685964 
    59695965     // Some non-html elements return undefined for offsetWidth, so check for null/undefined 
     
    73237319} ); 
    73247320 
     7321// Support: IE <=11 only 
     7322// Accessing the selectedIndex property 
     7323// forces the browser to respect setting selected 
     7324// on the option 
     7325// The getter ensures a default option is selected 
     7326// when in an optgroup 
    73257327if ( !support.optSelected ) { 
    73267328     jQuery.propHooks.selected = { 
     
    73317333               } 
    73327334               return null; 
     7335          }, 
     7336          set: function( elem ) { 
     7337               var parent = elem.parentNode; 
     7338               if ( parent ) { 
     7339                    parent.selectedIndex; 
     7340 
     7341                    if ( parent.parentNode ) { 
     7342                         parent.parentNode.selectedIndex; 
     7343                    } 
     7344               } 
    73337345          } 
    73347346     }; 
     
    75257537 
    75267538 
    7527 var rreturn = /\r/g; 
     7539var rreturn = /\r/g, 
     7540     rspaces = /[\x20\t\r\n\f]+/g; 
    75287541 
    75297542jQuery.fn.extend( { 
     
    76017614               get: function( elem ) { 
    76027615 
    7603                     // Support: IE<11 
    7604                     // option.value not trimmed (#14858) 
    7605                     return jQuery.trim( elem.value ); 
     7616                    var val = jQuery.find.attr( elem, "value" ); 
     7617                    return val != null ? 
     7618                         val : 
     7619 
     7620                         // Support: IE10-11+ 
     7621                         // option.text throws exceptions (#14686, #14858) 
     7622                         // Strip and collapse whitespace 
     7623                         // https://html.spec.whatwg.org/#strip-and-collapse-whitespace 
     7624                         jQuery.trim( jQuery.text( elem ) ).replace( rspaces, " " ); 
    76067625               } 
    76077626          }, 
     
    76567675                         option = options[ i ]; 
    76577676                         if ( option.selected = 
    7658                                    jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1 
     7677                              jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1 
    76597678                         ) { 
    76607679                              optionSet = true; 
     
    78347853 
    78357854     // Piggyback on a donor event to simulate a different one 
     7855     // Used only for `focus(in | out)` events 
    78367856     simulate: function( type, elem, event ) { 
    78377857          var e = jQuery.extend( 
     
    78417861                    type: type, 
    78427862                    isSimulated: true 
    7843  
    7844                     // Previously, `originalEvent: {}` was set here, so stopPropagation call 
    7845                     // would not be triggered on donor event, since in our own 
    7846                     // jQuery.event.stopPropagation function we had a check for existence of 
    7847                     // originalEvent.stopPropagation method, so, consequently it would be a noop. 
    7848                     // 
    7849                     // But now, this "simulate" function is used only for events 
    7850                     // for which stopPropagation() is noop, so there is no need for that anymore. 
    7851                     // 
    7852                     // For the compat branch though, guard for "click" and "submit" 
    7853                     // events is still used, but was moved to jQuery.event.stopPropagation function 
    7854                     // because `originalEvent` should point to the original event for the constancy 
    7855                     // with other events and for more focused logic 
    78567863               } 
    78577864          ); 
    78587865 
    78597866          jQuery.event.trigger( e, null, elem ); 
    7860  
    7861           if ( e.isDefaultPrevented() ) { 
    7862                event.preventDefault(); 
    7863           } 
    78647867     } 
    78657868 
     
    93519354 
    93529355 
    9353 // Support: Safari 8+ 
    9354 // In Safari 8 documents created via document.implementation.createHTMLDocument 
    9355 // collapse sibling forms: the second one becomes a child of the first one. 
    9356 // Because of that, this security measure has to be disabled in Safari 8. 
    9357 // https://bugs.webkit.org/show_bug.cgi?id=137337 
    9358 support.createHTMLDocument = ( function() { 
    9359      var body = document.implementation.createHTMLDocument( "" ).body; 
    9360      body.innerHTML = "<form></form><form></form>"; 
    9361      return body.childNodes.length === 2; 
    9362 } )(); 
    9363  
    9364  
    93659356// Argument "data" should be string of html 
    93669357// context (optional): If specified, the fragment will be created in this context, 
     
    93759366          context = false; 
    93769367     } 
    9377  
    9378      // Stop scripts or inline event handlers from being executed immediately 
    9379      // by using document.implementation 
    9380      context = context || ( support.createHTMLDocument ? 
    9381           document.implementation.createHTMLDocument( "" ) : 
    9382           document ); 
     9368     context = context || document; 
    93839369 
    93849370     var parsed = rsingleTag.exec( data ), 
     
    94629448          } ).always( callback && function( jqXHR, status ) { 
    94639449               self.each( function() { 
    9464                     callback.apply( self, response || [ jqXHR.responseText, status, jqXHR ] ); 
     9450                    callback.apply( this, response || [ jqXHR.responseText, status, jqXHR ] ); 
    94659451               } ); 
    94669452          } ); 
     
    96209606 
    96219607               // Add offsetParent borders 
    9622                // Subtract offsetParent scroll positions 
    9623                parentOffset.top += jQuery.css( offsetParent[ 0 ], "borderTopWidth", true ) - 
    9624                     offsetParent.scrollTop(); 
    9625                parentOffset.left += jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true ) - 
    9626                     offsetParent.scrollLeft(); 
     9608               parentOffset.top += jQuery.css( offsetParent[ 0 ], "borderTopWidth", true ); 
     9609               parentOffset.left += jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true ); 
    96279610          } 
    96289611 
Note: See TracChangeset for help on using the changeset viewer.

Sites map