Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

Commit 430d655

Browse files
committed
change to explicit registration system since we can't rely on observing native property changes
1 parent 340c089 commit 430d655

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

polymer-meta.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
*/
6262
type: 'default',
6363
ready: function() {
64-
this.idChanged();
64+
this.register(this.id);
6565
},
6666
get metaArray() {
6767
var t = this.type;
@@ -77,10 +77,10 @@
7777
}
7878
return metaData[t];
7979
},
80-
idChanged: function(old) {
81-
if (this.id && this.id !== SKIP_ID) {
80+
register: function(id, old) {
81+
if (id && id !== SKIP_ID) {
8282
this.unregister(this, old);
83-
this.metaData[this.id] = this;
83+
this.metaData[id] = this;
8484
this.metaArray.push(this);
8585
}
8686
},

0 commit comments

Comments
 (0)