Opened 11 years ago

Closed 7 years ago

#6296 closed enhancement (fixed)

Add support for dojo.continueEvent()

Reported by: Nathan Toone Owned by:
Priority: low Milestone: 1.9
Component: Events Version: 1.0
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by Nathan Toone)

Scenario: a class calls this.inherited(arguments) and the inherited function calls dojo.stopEvent on the event. However, the subclass wants to "un-cancel" the event after this.inherited has been called.

I don't think it's a major issue - but if your event gets stopped when calling this.inherited(), it might be helpful to have the ability to "restart" it in some way.

Change History (5)

comment:1 Changed 11 years ago by Nathan Toone

Description: modified (diff)
Reporter: changed from nathan to Nathan Toone

comment:2 Changed 11 years ago by dylan

Milestone: 1.2future

comment:3 Changed 8 years ago by bill

Component: GeneralEvents

comment:4 Changed 8 years ago by Chris Mitchell

Owner: anonymous deleted

comment:5 Changed 7 years ago by dylan

Milestone: future1.9
Resolution: fixed
Status: newclosed

dojo/on has support for pausable, which solves this issue:

pausable(target, type, listener, dontFix) Defined by dojo/on

This function acts the same as on(), but with pausable functionality. The returned signal object has pause() and resume() functions. Calling the pause() method will cause the listener to not be called for future events. Calling the resume() method will cause the listener to again be called for future events.

Note: See TracTickets for help on using tickets.