#5621 closed enhancement (wontfix)
$.each bug in ie7
Reported by: | yehia | Owned by: | |
---|---|---|---|
Priority: | trivial | Milestone: | 1.4 |
Component: | core | Version: | 1.4a1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
$.each(multi_dem_array,function(j,arr){
error
})
generates an error in ie7
$.each(multi_dem_array,function(j,arr){
if(arr){ no error
}
})
works fine, there seems to be an extra undefined element that generates the error.
Attachments (1)
Change History (8)
comment:1 Changed 13 years ago by
comment:3 Changed 13 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Can you reopen with a simple test case?
comment:4 Changed 13 years ago by
<script type="text/javascript" src="jquery-1.3.2.js"></script> <script type="text/javascript"> var multi_dem_array=new Array(); multi_dem_array=[['1','x'],
['2','y'], ['3','z'], ];
$.each(multi_dem_array,function(j,arr){
error
alert(arr[0]);
})
</script>
comment:5 Changed 13 years ago by
Resolution: | invalid |
---|---|
Status: | closed → reopened |
comment:6 Changed 13 years ago by
Component: | unfilled → core |
---|---|
need: | Test Case → Review |
Type: | bug → enhancement |
This is more of an enhancement request; the top-level object passed to extend should be an Object and not an Array.
comment:7 Changed 13 years ago by
Resolution: | → wontfix |
---|---|
Status: | reopened → closed |
Yeah, I don't think this is something we're going to tackle.
I'm sure this is the right place to post this. So if you do, let me know.