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

Commit 9817c4f

Browse files
committed
Add note to fix second timeout by referencing Github issue
1 parent 32f9d96 commit 9817c4f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

angularfire.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -650,8 +650,8 @@
650650
// Once we receive the initial value, the promise will be resolved.
651651
self._fRef.once("value", function(snap) {
652652
self._timeout(function() {
653-
// Objects require a second event loop run, since we switch from
654-
// value events to child_added.
653+
// HACK / FIXME: Objects require a second event loop run, since we
654+
// switch from value events to child_added. See #209 on Github.
655655
if (typeof snap.val() != "object") {
656656
// If the remote value is not set and defaultFn was provided,
657657
// initialize the local value with the result of defaultFn().
@@ -675,7 +675,6 @@
675675
return deferred.promise;
676676
},
677677

678-
679678
// Parse a local model, removing all properties beginning with "$" and
680679
// converting $priority to ".priority".
681680
_parseObject: function(obj) {

0 commit comments

Comments
 (0)