the first one is fine. the second one causes an error here in firebase-collection.html line 331:
_applySubPathChange: function(change) {
var key = change.path.split('.')[1];
var value = Polymer.Collection.get(change.base).getItem(key);
var firebaseKey = value.__firebaseKey__;
// We don't want to accidentally reflect `__firebaseKey__` in the
// remote data, so we remove it temporarily. `null` values will be
// discarded by Firebase, so `delete` is not necessary:
value.__firebaseKey__ = null;
this.query.ref().child(firebaseKey).set(value);
value.__firebaseKey__ = firebaseKey;
},
somehow the key to the item being updated gets changes from "3" to 4. so
var value = Polymer.Collection.get(change.base).getItem(key);
returns "undefined"
i have a custom element bound to a firebase-collection element. I make two changes to my custom element's data:
the first one is fine. the second one causes an error here in firebase-collection.html line 331:
somehow the key to the item being updated gets changes from "3" to 4. so
var value = Polymer.Collection.get(change.base).getItem(key);
returns "undefined"