Bug Tracker

Opened 17 years ago

Closed 17 years ago

#51 closed bug (fixed)

Issue with Arrays

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

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 (5)

comment:1 Changed 17 years ago by john

Milestone: 1.0
Version: 1.0

comment:2 Changed 17 years ago by john

Resolution: invalid
Status: newclosed

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 17 years ago by anonymous

Component: ajax
Priority: blocker
Resolution: invalid
Status: reopenedclosed
Type: bug

SPAMPOLICE

comment:4 Changed 17 years ago by Janice

Cc: Janice added; "" removed
Component: ajax1
Keywords: Janice added; "" removed
Milestone: 1
Priority: blocker1
Summary: $([['a', 'b']]).lengthJanice
Type: bug1
Version: 1

comment:5 Changed 17 years ago by john

Component: ajax
Priority: blocker
Resolution: fixed
Status: reopenedclosed
Summary: JaniceIssue with Arrays
Type: bug
Note: See TracTickets for help on using tickets.