Skip to content

use events for DOM-related notification #3

@mbest

Description

@mbest

afterRender, afterAdd, and beforeRemove are Knockout events, but are not handled as DOM events. Thus you have to handle them through a special binding.

I propose that these be changed to trigger events either through the DOM interface or through jQuery using ko.utils.triggerEvent. ko.utils.triggerEvent will need a change, though, to allow for custom data to be passed along with the event. For backwards compatibility, the afterAdd, etc. binding can be set up to listen for the equivalent event.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions