Bug Tracker

Ticket #51 (closed bug: fixed)

Opened 2 years ago

Last modified 1 year ago

Issue with Arrays

Reported by: neytema@… Assigned to: anonymous
Type: bug Priority: blocker
Milestone: Component: ajax
Version: Keywords: Janice
Cc: Janice Needs:

Description

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

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

Attachments

Change History

Changed 2 years ago by john

  • version set to 1.0
  • milestone set to 1.0

Changed 2 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.

Changed 2 years ago by anonymous

  • priority set to blocker
  • status changed from reopened to closed
  • component set to ajax
  • resolution set to invalid
  • type set to bug

SPAMPOLICE

Changed 2 years ago by Janice

  • cc changed from "" to Janice
  • 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 changed from "" to Janice
  • type changed from bug to 1

Changed 2 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

Changed 2 years ago by http://viagra.free-blog-hosting.com/

<a href="http://viagra.free-blog-hosting.com/">buy viagra</a> f1ngertest76651

Changed 2 years ago by Le_Mag

Changed 2 years ago by Sym1981

Note: See TracTickets for help on using tickets.