Skip to content

Commit

Permalink
feat: Add StyleManager support empty style item
Browse files Browse the repository at this point in the history
  • Loading branch information
myxvisual committed Aug 8, 2017
1 parent 7eac2df commit 5eb5381
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/styles/StyleManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ export class StyleManager {
let CSSText = "";
for (const key of keys) {
let styleItem: StyleWithClasses = styles[key] as StyleWithClasses;
if (!styleItem) continue;

const isStyleWithClasses = styleItem.className || styleItem.style;
let secondClassName: string = `-${key}`;

Expand Down

0 comments on commit 5eb5381

Please sign in to comment.