Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(435)

Unified Diff: lib/src/firebase-element/firebase-document.html

Issue 1418513006: update elements and fix some bugs (Closed) Base URL: git@github.com:dart-lang/polymer_elements.git@master
Patch Set: code review updates Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) {
« no previous file with comments | « lib/src/firebase-element/firebase-collection.html ('k') | lib/src/firebase-element/firebase-query-behavior.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698