Side navigation
#11386 closed bug (cantfix)
Opened February 24, 2012 04:49AM UTC
Closed March 10, 2012 02:14PM UTC
for ... in syntax works incorrectly with arguments object on safari 5
Reported by: | folioforsto | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.7.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
for in syntax won't iterate through every property of a arguments object in a function context.
This bug affects the jquery.extend function.
Because the implementation trys to iterate through every property of an object using this approach.
Implementation: https://github.com/jquery/jquery/blob/master/src/core.js#L333
My currently work around for this is to create a copy of the arguments object before passing it to the jquery.extend function.
See a demo of the bug:
Tested Chrome and it works as expected.
Attachments (0)
Change History (1)
Changed March 10, 2012 02:14PM UTC by comment:1
resolution: | → cantfix |
---|---|
status: | new → closed |
This should be reported to Safari. It does not make sense to work around it inside jQuery.