Incorrect transition 2.0 onCancel event parameter

Hi,

When issuing transition.cancel(transition_to_cancel), the listener defined in onCancel of transition_to_cancel will be called with target as the parameter, instead of event table with target entry.

simple test to confirm:

local group = display.newGroup() local rect = display.newRect(100, 100, 100, 100) transition.to(rect, {time = 1000, x = 300, tag = "testTransition", onCancel = function(event) assert(event and event.removeSelf, "EVENT IS NO LONGER A TARGET (this is good!)") assert(event and event.target and event.target.removeSelf, "EVENT TARGET DOES NOT EXIST (this is bad!)") end}) timer.performWithDelay(500, function() transition.cancel("testTransition") end)  

CoronaSDK 2012.2051

Have you submitted a bug for that?

Was this reported as a bug or fixed?

cosmic: this was reported as fixed, you can read about it in some recent changelog.

I haven’t tested it myself yet, as I’m not porting to graphics 2.0, and the compatibility mode does not work for us.

Krystian

Hi guys,

We’re double-checking that this transition cancel thing is behaving as it should, or whether it needs further attention… thanks for bumping it.

Brent

Have you submitted a bug for that?

Was this reported as a bug or fixed?

cosmic: this was reported as fixed, you can read about it in some recent changelog.

I haven’t tested it myself yet, as I’m not porting to graphics 2.0, and the compatibility mode does not work for us.

Krystian

Hi guys,

We’re double-checking that this transition cancel thing is behaving as it should, or whether it needs further attention… thanks for bumping it.

Brent