Bug Tracker

Changeset 5828

Show
Ignore:
Timestamp:
08/13/08 18:16:14 (11 months ago)
Author:
aflesler
Message:

jquery core: closes #3154. makeArray uses typeof instead of attribute sniffing for strings.

Files:
1 modified

Legend:

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

    r5825 r5828  
    11341134            var i = array.length; 
    11351135            // The window, strings (and functions) also have 'length' 
    1136             if( i == null || array.split || array.setInterval ) 
     1136            if( i == null || typeof array == 'function' || array.setInterval ) 
    11371137                ret[0] = array; 
    11381138            else