We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96dd06e commit 1e750a0Copy full SHA for 1e750a0
src/core.js
@@ -40,7 +40,8 @@ var jQuery = function( selector, context ) {
40
// Save a reference to some core methods
41
toString = Object.prototype.toString,
42
push = Array.prototype.push,
43
- slice = Array.prototype.slice;
+ slice = Array.prototype.slice,
44
+ indexOf = Array.prototype.indexOf;
45
46
jQuery.fn = jQuery.prototype = {
47
init: function( selector, context ) {
@@ -522,6 +523,12 @@ jQuery.extend({
522
523
}
524
});
525
526
+if ( indexOf ) {
527
+ jQuery.inArray = function( elem, array ) {
528
+ return indexOf.call( array, elem );
529
+ };
530
+}
531
+
532
// All jQuery objects should point back to these
533
rootjQuery = jQuery(document);
534
0 commit comments