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

Commit 7d9f7f3

Browse files
committed
Use update instead of set to handle objects with limits
1 parent 0c8525e commit 7d9f7f3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

angularFire.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ AngularFire.prototype = {
8181
// If types don't match or the type is primitive, just overwrite the
8282
// local value with the remote value.
8383
if (merged) {
84-
self._fRef.ref().set(merged);
84+
self._fRef.ref().update(merged);
8585
return;
8686
}
8787
}
@@ -155,7 +155,7 @@ AngularFire.prototype = {
155155
if (angular.equals(val, self._remoteValue)) {
156156
return;
157157
}
158-
self._fRef.ref().set(val);
158+
self._fRef.ref().update(val);
159159
}, true);
160160
// Also watch for scope destruction and unregister.
161161
$scope.$on("$destroy", function() {

angularfire.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)