git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't use for-in loops on Arrays. Fixes #7817. Thanks to dmethvin.
[jquery.git]
/
test
/
unit
/
manipulation.js
diff --git
a/test/unit/manipulation.js
b/test/unit/manipulation.js
index
ba57a6f
..
da16354
100644
(file)
--- a/
test/unit/manipulation.js
+++ b/
test/unit/manipulation.js
@@
-1,5
+1,8
@@
module("manipulation");
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; }); };
var bareObj = function(value) { return value; };
var functionReturningObj = function(value) { return (function() { return value; }); };