FIX: App.css now applied when there is page css

This commit is contained in:
vakrilov
2015-07-23 17:02:15 +03:00
parent d83e3a6ccd
commit dc4a8f745f

View File

@@ -38,7 +38,13 @@ export class StyleScope {
this._reset();
if (!this._cssSelectors) {
this._cssSelectors = new Array<cssSelector.CssSelector>();
// Always add app.css when initializing selectors
if (application.cssSelectorsCache) {
this._cssSelectors = StyleScope._joinCssSelectorsArrays([application.cssSelectorsCache]);
}
else {
this._cssSelectors = new Array<cssSelector.CssSelector>();
}
}
var selectorsFromFile = StyleScope.createSelectorsFromCss(cssString, cssFileName);