Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Commit ba5d937

Browse files
author
jwngr
committed
Fixed typos in comments for $watch() methods
1 parent 8cec2e9 commit ba5d937

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/FirebaseArray.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,8 @@
242242
/**
243243
* Listeners passed into this method are notified whenever a new change (add, updated,
244244
* move, remove) is received from the server. Each invocation is sent an object
245-
* containing <code>{ type: 'added|updated|moved|removed', key: 'key_of_item_affected'}</code>
245+
* containing <code>{ type: 'child_added|child_updated|child_moved|child_removed',
246+
* key: 'key_of_item_affected'}</code>
246247
*
247248
* Additionally, added and moved events receive a prevChild parameter, containing the
248249
* key of the item before this one in the array.

src/FirebaseObject.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
/**
152152
* Listeners passed into this method are notified whenever a new change is received
153153
* from the server. Each invocation is sent an object containing
154-
* <code>{ type: 'updated', key: 'my_firebase_id' }</code>
154+
* <code>{ type: 'child_updated', key: 'my_firebase_id' }</code>
155155
*
156156
* This method returns an unbind function that can be used to detach the listener.
157157
*

0 commit comments

Comments
 (0)