Skip to content

Commit

Permalink
* [html5] fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
MrRaindrop committed Sep 23, 2016
1 parent c0d409f commit 9612daa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions html5/browser/extend/api/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,12 @@ const dom = {
addRule: function (key, styles) {
key = camelToKebab(key)
let stylesText = ''
for (var k in styles) {
for (const k in styles) {
if (styles.hasOwnProperty(k)) {
stylesText += camelToKebab(k) + ':' + styles[k] + ';'
}
}
}
const styleText = `@${key}{${stylesText}}`
console.log(styleText)
appendStyle(styleText, 'dom-added-rules')
}
}
Expand Down

0 comments on commit 9612daa

Please sign in to comment.