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:
parent
291b1edf44
commit
4424bda377
2 changed files with 8 additions and 5 deletions
|
@ -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; }); };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue