require(["decor/Invalidating"], function (Invalidating) {
new Invalidating();
});
Mixin class for widgets that want to calculate computed properties at once and/or to render UI at once upon multiple property changes.
- Source:
Methods
-
computeProperties(newValues, oldValues)
-
Callback function to calculate computed properties upon property changes.
Parameters:
Name Type Description newValues
Object The hash table of new property values, keyed by property names.
oldValues
Object The hash table of old property values, keyed by property names.
- Source:
-
deliver()
-
Synchronously deliver change records for computed properties and then UI rendering so that
refreshingRendering()
is called if there are pending change records.- Source:
-
deliverComputing()
-
Synchronously deliver change records for computed properties so that
refreshingComputing()
is called if there are pending change records.- Source:
-
discardChanges()
-
Discard change records.
- Source:
-
discardComputing()
-
Discard change records for computed properties.
- Source:
-
<protected> initializeInvalidating()
-
Sets up observers, one for computed properties, one for UI rendering. Normally this method is called automatically by the constructor, and should not be called manually, but the method is exposed for custom elements since they do not call the
constructor()
method.- Source:
-
refreshRendering(newValues, oldValues)
-
Callback function to render UI upon property changes.
Parameters:
Name Type Description newValues
Object The hash table of new property values, keyed by property names.
oldValues
Object The hash table of old property values, keyed by property names.
- Source: