File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ define( require => {
108
108
}
109
109
110
110
/**
111
- * Adds a listener
111
+ * Adds a listener. When emitting, the listeners are called in the order they were added.
112
112
* @param {function } listener
113
113
* @public
114
114
*/
@@ -182,8 +182,8 @@ define( require => {
182
182
}
183
183
184
184
/**
185
- * Emits a single event.
186
- * This method is called many times in a simulation and must be well-optimized .
185
+ * Emits a single event. This method is called many times in a simulation and must be well-optimized. Listeners
186
+ * are notified in the order they were added via addListener .
187
187
* @params - expected parameters are based on options.argumentTypes, see constructor
188
188
* @public
189
189
*/
Original file line number Diff line number Diff line change @@ -309,7 +309,8 @@ define( require => {
309
309
310
310
/**
311
311
* Adds listener and calls it immediately. If listener is already registered, this is a no-op. The initial
312
- * notification provides the current value for newValue and null for oldValue.
312
+ * notification provides the current value for newValue and null for oldValue. On value changes, listeners
313
+ * are called back in the order they were added.
313
314
*
314
315
* @param {function } listener a function of the form listener(newValue,oldValue)
315
316
* @public
@@ -320,10 +321,9 @@ define( require => {
320
321
}
321
322
322
323
/**
323
- * Add an listener to the Property, without calling it back right away.
324
- * This is used when you need to register a listener without an immediate callback.
325
- *
326
- * @param {function } listener - a function with a single argument, which is the value of the property at the time the function is called.
324
+ * Add an listener to the Property, without calling it back right away. This is used when you need to register a
325
+ * listener without an immediate callback. On value changes, listeners are called back in the order they were added.
326
+ * @param {function } listener - a function with a single argument, which is the current value of the Property.
327
327
* @public
328
328
*/
329
329
lazyLink ( listener ) {
You can’t perform that action at this time.
0 commit comments