| CODENOTIFIER | HelpYou are not signed inSign in |
Project: jQuery
Revision: 5828
Author: aflesler
Date: 13 Aug 2008 14:16:14
Diff at Trac: http://dev.jquery.com/changeset/5828
Changes:jquery core: closes #3154. makeArray uses typeof instead of attribute sniffing for strings.
Files:| ... | ...@@ -1133,7 +1133,7 @@ | |
| 1133 | 1133 | if( array != null ){ |
| 1134 | 1134 | var i = array.length; |
| 1135 | 1135 | // 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 ) | |
| 1137 | 1137 | ret[0] = array; |
| 1138 | 1138 | else |
| 1139 | 1139 | while( i ) |