Skip to content

Commit fd72adc

Browse files
author
Steven Orvell
committed
fix indentation and make sure style placeholder should be created 1x only.
1 parent 576bab1 commit fd72adc

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/elements/element.html

+10-10
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,17 @@
6868

6969
static get observedAttributes() {
7070
if (!this.hasOwnProperty('_observedAttributes')) {
71+
// observedAttributes must be finalized at registration time
72+
this._observedAttributes = this.addPropertiesToAttributes(
73+
this._flattenedProperties, []);
7174
// TODO(kschaaf): revisit: capture import document, to aid finding dom-module
72-
var currentScript = document._currentScript || document.currentScript;
73-
this.__importDoc = currentScript && currentScript.ownerDocument;
74-
// observedAttributes must be finalized at registration time
75-
this._observedAttributes = this.addPropertiesToAttributes(
76-
this._flattenedProperties, []);
77-
}
78-
// TODO(sorvell): define time cheat. Should we patch customElements.define
79-
// instead?
80-
if (!Polymer.StyleLib.nativeShadow) {
81-
this.__placeholder = Polymer.StyleLib.applyStylePlaceHolder(this.is);
75+
var currentScript = document._currentScript || document.currentScript;
76+
this.__importDoc = currentScript && currentScript.ownerDocument;
77+
// TODO(sorvell): define time cheat. Should we patch
78+
// customElements.define instead?
79+
if (!Polymer.StyleLib.nativeShadow) {
80+
this.__placeholder = Polymer.StyleLib.applyStylePlaceHolder(this.is);
81+
}
8282
}
8383
return this._observedAttributes;
8484
}

0 commit comments

Comments
 (0)