Bug Tracker

Modify

Ticket #5621 (closed enhancement: wontfix)

Opened 3 years ago

Last modified 15 months ago

$.each bug in ie7

Reported by: yehia Owned by:
Priority: trivial Milestone: 1.4
Component: core Version: 1.4a1
Keywords: Cc:
Blocking: Blocked by:

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

jquerybug.html Download (294 bytes) - added by yehia 3 years ago.
test case

Change History

comment:1 Changed 3 years ago by yehia

I'm sure this is the right place to post this. So if you do, let me know.

comment:2 Changed 3 years ago by yehia

*Not sure

comment:3 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

Can you reopen with a simple test case?

Changed 3 years ago by yehia

test case

comment:4 Changed 3 years ago by yehia

<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 3 years ago by yehia

  • Status changed from closed to reopened
  • Resolution invalid deleted

comment:6 Changed 3 years ago by dmethvin

  • need changed from Test Case to Review
  • Type changed from bug to enhancement
  • Component changed from unfilled to core

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 3 years ago by john

  • Status changed from reopened to closed
  • Resolution set to wontfix

Yeah, I don't think this is something we're going to tackle.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.