Ticket #3784: grep[6053].diff
File grep[6053].diff, 701 bytes (added by , 14 years ago) |
---|
-
src/core.js
1083 1083 }, 1084 1084 1085 1085 grep: function( elems, callback, inv ) { 1086 if( filter && !inv ) 1087 return filter.call( elems, callback ); 1088 1086 1089 var ret = []; 1087 1090 1088 1091 // Go through the array, only saving the items … … 1114 1117 // It's included for backwards compatibility and plugins, 1115 1118 // although they should work to migrate away. 1116 1119 1117 var userAgent = navigator.userAgent.toLowerCase(); 1120 var userAgent = navigator.userAgent.toLowerCase(), 1121 filter = Array.prototype.filter; 1118 1122 1119 1123 // Figure out what browser is being used 1120 1124 jQuery.browser = {