Bug Tracker

Changeset 5349

Show
Ignore:
Timestamp:
04/29/08 20:58:22 (8 months ago)
Author:
aflesler
Message:

jquery core: in $.makeArray, improved array-like detection, Safari reports nodelists as 'function', so I got back to attribute sniffing.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/jquery/src/core.js

    r5318 r5349  
    11181118            var i = array.length; 
    11191119            //the window, strings and functions also have 'length' 
    1120             if( i != undefined && typeof array == 'object' && array != window ) 
     1120            if( i != null && !array.split && array != window && !array.call ) 
    11211121                while( i ) 
    11221122                    ret[--i] = array[i];