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

Commit

Permalink
change to explicit registration system since we can't rely on observi…
Browse files Browse the repository at this point in the history
…ng native property changes
  • Loading branch information
sorvell committed Apr 10, 2014
1 parent ac06780 commit e1b9af2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core-meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
alwaysPrepare: true,

ready: function() {
this.idChanged();
this.register(this.id);
},

get metaArray() {
Expand All @@ -101,10 +101,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);
}
},
Expand Down

0 comments on commit e1b9af2

Please sign in to comment.