Ticket #6490 (new defect)

Opened 3 months ago

Last modified 10 days ago

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

dojo-fx-bug.html (0.9 kB) - added by guest 3 months ago.
See the bug in action!

Change History

Changed 3 months ago by guest

See the bug in action!

Changed 3 months ago by guest

I've posted the bug online so you can see it "work", not just the src in trac.

http://stilleye.com/z/dojo-fx-bug.html

Changed 10 days ago by bill

  • milestone set to tbd

mark all (open) tickets w/blank milestones to be "tbd"; their milestones need to be set to a version number or to "future"

Note: See TracTickets for help on using tickets.