Evan You
8 years ago
7 changed files with 19 additions and 12 deletions
@ -1,11 +1,11 @@ |
|||
/* @flow */ |
|||
|
|||
import { escape } from '../util' |
|||
import { cachedEscape } from '../util' |
|||
import { genClassForVnode } from 'web/util/index' |
|||
|
|||
export default function renderClass (node: VNodeWithData): ?string { |
|||
const classList = genClassForVnode(node) |
|||
if (classList !== '') { |
|||
return ` class="${escape(classList)}"` |
|||
return ` class="${cachedEscape(classList)}"` |
|||
} |
|||
} |
|||
|
Loading…
Reference in new issue