Issue with Arrays
Reported by: |
neytema@… |
Owned by: |
|
Priority:
|
undecided
|
Milestone:
|
|
Component:
|
ajax
|
Version:
|
|
Keywords:
|
Janice
|
Cc:
|
Janice
|
Blocked by:
|
|
Blocking:
|
|
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)
Milestone: |
→ 1.0
|
Version: |
→ 1.0
|
Resolution: |
→ invalid
|
Status: |
new →
closed
|
Component: |
→ ajax
|
Priority: |
→ blocker
|
Resolution: |
→ invalid
|
Status: |
reopened →
closed
|
Type: |
→ bug
|
Cc: |
Janice added; "" removed
|
Component: |
ajax →
1
|
Keywords: |
Janice added; "" removed
|
Milestone: |
→ 1
|
Priority: |
blocker →
1
|
Summary: |
$([['a', 'b']]).length →
Janice
|
Type: |
bug →
1
|
Version: |
→ 1
|
Component: |
→ ajax
|
Priority: |
→ blocker
|
Resolution: |
→ fixed
|
Status: |
reopened →
closed
|
Summary: |
Janice →
Issue with Arrays
|
Type: |
→ bug
|
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.