File tree 1 file changed +10
-10
lines changed
1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 68
68
69
69
static get observedAttributes ( ) {
70
70
if ( ! this . hasOwnProperty ( '_observedAttributes' ) ) {
71
+ // observedAttributes must be finalized at registration time
72
+ this . _observedAttributes = this . addPropertiesToAttributes (
73
+ this . _flattenedProperties , [ ] ) ;
71
74
// 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
+ }
82
82
}
83
83
return this . _observedAttributes ;
84
84
}
You can’t perform that action at this time.
0 commit comments