Skip to content

Commit

Permalink
use cached template annotations when possible
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott J Miles committed Aug 21, 2015
1 parent a0a3e0c commit b0733d3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/standard/annotations.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,11 @@
} else {
// TODO(sorvell): ad hoc method of plugging behavior into Annotations
Polymer.Annotations.prepElement = this._prepElement.bind(this);
this._notes = Polymer.Annotations.parseAnnotations(this._template);
if (this._template._content && this._template._content._notes) {
this._notes = this._template._content._notes;
} else {
this._notes = Polymer.Annotations.parseAnnotations(this._template);
}
this._processAnnotations(this._notes);
Polymer.Annotations.prepElement = null;
}
Expand Down

0 comments on commit b0733d3

Please sign in to comment.