From 430d655fb26c641beae12289fd143b1862f41430 Mon Sep 17 00:00:00 2001 From: Steve Orvell Date: Wed, 9 Apr 2014 17:00:04 -0700 Subject: [PATCH] change to explicit registration system since we can't rely on observing native property changes --- polymer-meta.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/polymer-meta.html b/polymer-meta.html index 163a16f..4e25a25 100644 --- a/polymer-meta.html +++ b/polymer-meta.html @@ -61,7 +61,7 @@ */ type: 'default', ready: function() { - this.idChanged(); + this.register(this.id); }, get metaArray() { var t = this.type; @@ -77,10 +77,10 @@ } return metaData[t]; }, - idChanged: function(old) { - if (this.id && this.id !== SKIP_ID) { + register: function(id, old) { + if (id && id !== SKIP_ID) { this.unregister(this, old); - this.metaData[this.id] = this; + this.metaData[id] = this; this.metaArray.push(this); } },