Bug Tracker

Ticket #2771: core.js.patch

File core.js.patch, 395 bytes (added by ericsk, 8 months ago)

the patch file of core.js

  • core.js

    old new  
    144144    index: function( elem ) { 
    145145        var ret = -1; 
    146146 
     147        // if the elem argument is a jQuery object, get the element 
     148        if (elem instanceof jQuery) { 
     149            elem = elem.get(0); 
     150        } 
     151 
    147152        // Locate the position of the desired element 
    148153        this.each(function(i){ 
    149154            if ( this == elem )