-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduced pendingUpdates Set to keep track of variables with pending updates to prevent redundant updates within the same event loop cycle. Updated _queueUpdate Method: Ensures updates are batched together and the callback is triggered once per update cycle. Accepts action, item, property, and oldValue parameters to track specific changes. Enhanced _triggerCallbacks Method: Ensures the correct parameters are passed to the callback function. Includes action and item details to provide context for the callback. Refined _createObject and _createArray Methods: Updated to call _queueUpdate with action details when properties are set or modified. Optimized updateElement Method: Ensures input elements and other DOM elements are properly updated without redundant callbacks. Maintains data binding and synchronization between model and view.
- Loading branch information
Showing
3 changed files
with
94 additions
and
81 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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