Ticket #6490 (new defect)
Using dojo.fx.combine in dojo.fx.chain throws errors
| Reported by: | guest | Owned by: | BryanForbes |
|---|---|---|---|
| Priority: | normal | Milestone: | tbd |
| Component: | fx | Version: | 1.1.0 |
| Severity: | normal | Keywords: | combine chain |
| Cc: |
Description
When I do this:
var fx = [];
var d = 1500;
fx.push(dojo.fadeOut({ node:"a", duration:d }));
fx.push(dojo.fadeOut({ node:"b", duration:d }));
dojo.fx.chain([
dojo.fx.combine(fx),
dojo.fadeOut({ node:"c", duration:d })
]).play();
I get a TypeError?:
TypeError: second argument to Function.prototype.apply must be an arraydojo.xd.js
This only happens when I pass dojo.fx.combine as an argument. Stepping through the call, it appears that the arguments are getting "unwrapped" too many times somehow.
The animation still runs fine (the error gets squashed somewhere) but the error shows up in Firebug which is annoying in the least (it happens once per onAnimate call!).
Attachments
Change History
Note: See
TracTickets for help on using
tickets.