From 958bf0961af4af2ca2510611af6aca1bc6d11151 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Natan=20S=C4=85gol?= Date: Wed, 25 Oct 2017 16:47:33 +0000 Subject: [PATCH] Fix `query` in FirestoreMixin. Fixes an issue with `query` parameter being read from the constructor of an element instead of collecting the correct one from the prototype chain in FirestoreMixin. --- firebase-firestore-mixin.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/firebase-firestore-mixin.html b/firebase-firestore-mixin.html index b4e9a19..ac0258c 100644 --- a/firebase-firestore-mixin.html +++ b/firebase-firestore-mixin.html @@ -191,9 +191,8 @@ this[name + 'Ref'] = ref; this[name + 'Ready'] = false; - const query = this.constructor.properties[name].query; - if (query) { - ref = query.call(this, ref, this); + if (config.query) { + ref = config.query.call(this, ref, this); } if (config.live) {