Skip to content

Add init and remove events#19

Open
ricardobeat wants to merge 1 commit into
joshontheweb:masterfrom
ricardobeat:master
Open

Add init and remove events#19
ricardobeat wants to merge 1 commit into
joshontheweb:masterfrom
ricardobeat:master

Conversation

@ricardobeat

Copy link
Copy Markdown

This patch adds etch:init and etch:remove events which are triggered after editableInit and before removing.

Use case: the editable area has a draggable attribute which needs to be unset during editing, and put back when done.

Alternatively the events could be fired on the target element instead of the model, but since etch is already tightly coupled to Backbone I thought I'd follow that path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant