-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Temporarily adding components via the Sorter no longer triggers add/c…
…hange events Utils/Sorter will temporarily add a component to the collection in order to capture its properties, then remove it immediately. This triggers the component:add, component:remove, and change:changesCount events (and possibly others). The temporary addition/removal now includes an option flag 'temporary' which can be used in event handlers to detect this scenario. In addition, the editor.componentsUpdated handler performs the same check which prevents updating the changesCount as well as updating storage.
- Loading branch information
1 parent
5819133
commit 6e1952b
Showing
2 changed files
with
10 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters