Skip to content

Commit

Permalink
Merge pull request #305 from cyantree/master
Browse files Browse the repository at this point in the history
fix(css-resource): ensure only global styles get injected globally
  • Loading branch information
EisenbergEffect authored Sep 17, 2017
2 parents 22c4f5e + 5513a36 commit 68838e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/css-resource.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class CSSViewEngineHooks {
} else if (FEATURE.scopedCSS) {
let styleNode = DOM.injectStyles(this.css, content, true);
styleNode.setAttribute('scoped', 'scoped');
} else if (!this.owner._alreadyGloballyInjected) {
} else if (this._global && !this.owner._alreadyGloballyInjected) {
DOM.injectStyles(this.css);
this.owner._alreadyGloballyInjected = true;
}
Expand Down

0 comments on commit 68838e1

Please sign in to comment.