Skip to content

Commit

Permalink
* [html5] fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
MrRaindrop committed Aug 30, 2016
1 parent a06eb80 commit 0e94380
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion html5/browser/base/root.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ function init (Weex) {
if (!nodeType) {
console.warn(`[h5-render] no nodeType is specified, construct Root use 'div' by default.`)
nodeType = 'div'
} else if (config.validRoots.indexOf(nodeType) === -1) {
}
else if (config.validRoots.indexOf(nodeType) === -1) {
console.warn(`[h5-render] the root component type '${nodeType}' is not one of
the types in [${config.validRoots}] list. It is auto downgraded
to 'div'.`)
Expand Down
3 changes: 1 addition & 2 deletions html5/browser/render/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function noop () {}
!config.debug && (console.debug = noop)

// config for the 'downgrade'.
for (let key in params) {
for (const key in params) {
if (params.hasOwnProperty(key)) {
const match = key.match(/^downgrade_(\w+)$/)
if (!match || !match[1]) {
Expand All @@ -71,7 +71,6 @@ function noop () {}
config.downgrade[dk] = dr === true || dr === 'true'
}
}

})()

export default function Weex (options) {
Expand Down

0 comments on commit 0e94380

Please sign in to comment.