mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Use a for loop rather than for/in loop when copying events, so that code will work with an augmented Array.prototype. Fixes 7809.
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
module("manipulation");
|
||||
|
||||
// Ensure that an extended Array prototype doesn't break jQuery
|
||||
Array.prototype.arrayProtoFn = function(arg) { throw("arrayProtoFn should not be called"); };
|
||||
|
||||
var bareObj = function(value) { return value; };
|
||||
var functionReturningObj = function(value) { return (function() { return value; }); };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user