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