Bug Tracker

Modify

Ticket #51 (closed bug: fixed)

Opened 7 years ago

Last modified 7 years ago

Issue with Arrays

Reported by: neytema@… Owned by:
Priority: undecided Milestone:
Component: ajax Version:
Keywords: Janice Cc: Janice
Blocking: Blocked by:

Description

Testcase: alert($(a', 'b?).length); alert($(a', 'b?).get().length);

Fix at line 106 $Rev: 133 $: [].push.apply( this, $.map( num, "a" ) );

Change History

comment:1 Changed 7 years ago by john

  • Version set to 1.0
  • Milestone set to 1.0

comment:2 Changed 7 years ago by john

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

Umm.. well, considering that $(a', 'b?) isn't a valid argument, I'm not really surprised that it's failing. A proper one would be something like:

<pre>var foo = document.getElementById("foo"); var bar = document.getElementById("bar"); $([ foo, bar ]).hide();</pre>

Since jQuery neither accepts arrays-of-arrays OR arrays of expressions, what you provided won't work.

comment:3 Changed 7 years ago by anonymous

  • Priority set to blocker
  • Resolution set to invalid
  • Status changed from reopened to closed
  • Component set to ajax
  • Type set to bug

SPAMPOLICE

comment:4 Changed 7 years ago by Janice

  • Cc Janice added; "" removed
  • Component changed from ajax to 1
  • Summary changed from $([['a', 'b']]).length to Janice
  • Priority changed from blocker to 1
  • Version set to 1
  • Milestone set to 1
  • Keywords Janice added; "" removed
  • Type changed from bug to 1

comment:5 Changed 7 years ago by john

  • Status changed from reopened to closed
  • Type set to bug
  • Component set to ajax
  • Summary changed from Janice to Issue with Arrays
  • Priority set to blocker
  • Resolution set to fixed

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.