Bug Tracker

Ticket #1143: uniquebugv3.patch

File uniquebugv3.patch, 788 bytes (added by vmx, 5 years ago)

Faster version

  • jquery-1.1.

    old new if(typeof window.jQuery == "undefined")  
    77 * Dual licensed under the MIT (MIT-LICENSE.txt) 
    88 * and GPL (GPL-LICENSE.txt) licenses. 
    99 * 
    10  * $Date: 2007-05-21 00:49:26 +0000 (Mon, 21 May 2007) $ 
    11  * $Rev: 1938 $ 
     10 * $Date: 2007-05-16 18:21:50 +0200 (Mi, 16 Mai 2007) $ 
     11 * $Rev: 1910 $ 
    1212 */ 
    1313 
    1414// Global undefined variable 
    jQuery.extend({ 
    16781678                var r = [], num = jQuery.mergeNum++; 
    16791679 
    16801680                for ( var i = 0, fl = first.length; i < fl; i++ ) 
    1681                         if ( num != first[i].mergeNum ) { 
    1682                                 first[i].mergeNum = num; 
     1681                        if ( !first[i].mergeNum || num != first[i].mergeNum[0] ) { 
     1682                                first[i].mergeNum = [num]; 
    16831683                                r.push(first[i]); 
    16841684                        } 
    16851685