You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docsource/04_Record/03_Updates_and_change_events.md
+5-34Lines changed: 5 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ Works similar to `record.set( otherRecord.attributes, { merge : true });
35
35
36
36
## Listening to events
37
37
38
-
### Deep changes detection
38
+
### Deep changes observation
39
39
40
40
Records automatically listens to change events of nested records and collections, and triggers the corresponding change events on its attributes. It means that the single attribute change deeply inside of aggregation tree will trigger change events on all the parents in a sequence.
41
41
@@ -68,41 +68,12 @@ _Watcher function_ has the signature `( attrValue, attrName ) => void` and is ex
68
68
}
69
69
```
70
70
71
-
### Generic event API
71
+
### Custom events subscribtion.
72
72
73
-
Generic events API can be used to listen to any record's events.
73
+
`listener.listenTo()` and `listener.listenToOnce()` methods can be used to listen to the any of the change events.
0 commit comments