From 6f1dde76697dae2c1f64bdbf304500e463d9de26 Mon Sep 17 00:00:00 2001 From: Steven Orvell Date: Fri, 5 May 2017 14:53:17 -0700 Subject: [PATCH] Fix comment. --- lib/mixins/element-mixin.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/mixins/element-mixin.html b/lib/mixins/element-mixin.html index aae9c992e9..9465d1d034 100644 --- a/lib/mixins/element-mixin.html +++ b/lib/mixins/element-mixin.html @@ -656,10 +656,6 @@ hostStack.endHosting(this); this.$ = this.root.$; } - // The super.ready here makes this element able to observe data changes. - // We must wait to do this until after client dom is created/attached - // so that any notifications fired during this process are not handled - // before all clients are ready. super.ready(); } @@ -676,6 +672,10 @@ if (this._template) { this.root = this._attachDom(this.root); } + // The super._readyClients here sets the clients initialized flag. + // We must wait to do this until after client dom is created/attached + // so that this flag can be checked to prevent notifications fired + // during this process from being handled before clients are ready. super._readyClients(); }