-
-
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.
Refactor Meta and object destruction tracking.
* Moves the `isDestroying` and `isDestroyed` flags into meta * Prevents recreating meta _while_ destroying the object (was happening during chain node removal) * Allows reading values/caches after object destruction, but triggers an assertion if non-readable meta methods are called after the object is destroyed * Avoids doing extra work when unwatching keys/paths for an object that is also destroyed * Use bitwise flagging instead of many boolean properties for meta, and expose helpful methods to interact with them * Move chains cleanup to `Meta#destroy`.
- Loading branch information
Robert Jackson
committed
Sep 27, 2016
1 parent
0271597
commit 5c0e590
Showing
8 changed files
with
196 additions
and
118 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
Oops, something went wrong.