fix linting errors
This commit is contained in:
parent
bdbe0b8a21
commit
5ef5addb82
3 changed files with 15 additions and 9 deletions
12
mithril.js
12
mithril.js
|
|
@ -44,8 +44,10 @@ void (function (global, factory) { // eslint-disable-line
|
|||
}
|
||||
|
||||
function forOwn(obj, f) {
|
||||
for (var prop in obj) if (hasOwn.call(obj, prop)) {
|
||||
if (f(obj[prop], prop)) break
|
||||
for (var prop in obj) {
|
||||
if (hasOwn.call(obj, prop)) {
|
||||
if (f(obj[prop], prop)) break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -960,8 +962,10 @@ void (function (global, factory) { // eslint-disable-line
|
|||
}
|
||||
})
|
||||
|
||||
for (var rule in cachedAttr) if (hasOwn.call(cachedAttr, rule)) {
|
||||
if (!hasOwn.call(dataAttr, rule)) node.style[rule] = ""
|
||||
for (var rule in cachedAttr) {
|
||||
if (hasOwn.call(cachedAttr, rule)) {
|
||||
if (!hasOwn.call(dataAttr, rule)) node.style[rule] = ""
|
||||
}
|
||||
}
|
||||
} else if (namespace != null) {
|
||||
// handle SVG
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue