Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[update] order of destroy and init events #22

Merged
merged 2 commits into from
Feb 20, 2019
Merged

[update] order of destroy and init events #22

merged 2 commits into from
Feb 20, 2019

Conversation

mkozhukh
Copy link
Member

Update changes the order of events.
Now, when view A replaces view B, events will go like next

  • B.destroy()
  • A.init()

To do so, we remove direct destructor() calls from the rendering callback
and place the same call just after rendering new UI
( after this point we don't need old view anymore )

Update changes the order of events.
Now, when view A replaces view B, events will go like next

- B.destroy()
- A.init()

To do so, we remove direct destructor() calls from the rendering callback
and place the same call just after rendering new UI
( after this point we don't need old view anymore )
@mkozhukh
Copy link
Member Author

Related sample added
webix-hub/jet-demos#5

@mkozhukh mkozhukh requested a review from Zwillinge June 26, 2018 08:34
@mkozhukh mkozhukh merged commit 7f5b374 into master Feb 20, 2019
@mkozhukh mkozhukh deleted the destructor branch February 20, 2019 11:57
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