Index: lib/src/firebase-element/firebase-document.html |
diff --git a/lib/src/firebase-element/firebase-document.html b/lib/src/firebase-element/firebase-document.html |
index de4739f60ed7a473cd38f41e0b4a0b09402852c2..ff2010db2cb0de40fa0bcf9415877777bf7f7171 100644 |
--- a/lib/src/firebase-element/firebase-document.html |
+++ b/lib/src/firebase-element/firebase-document.html |
@@ -64,7 +64,7 @@ document. |
'firebase-value': '_onFirebaseValue' |
}, |
- _applyLocalDataChanges: function(change) { |
+ _localDataChanged: function(change) { |
var pathFragments = change.path.split('.'); |
if (pathFragments.length === 1) { |
@@ -98,8 +98,10 @@ document. |
}, |
_setRemoteDocumentChild: function(key, value) { |
- this._log('Setting child "' + key + '" to', value); |
- this.query.child(key).set(value); |
+ this.debounce('set-' + key, function() { |
+ this._log('Setting child "' + key + '" to', value); |
+ this.query.child(key).set(value); |
+ }); |
}, |
_removeRemoteDocumentChild: function(key) { |