Skip to content

Commit 23db8bb

Browse files
committed
fix lint and test coverage
1 parent d7ef643 commit 23db8bb

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/compiler/compile-props.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,8 @@ module.exports = function compileProps (el, propOptions) {
123123
*/
124124

125125
function hasBindingAttr (el, attr) {
126-
if (attr === 'class') {
127-
return false
128-
}
129-
130-
return (
126+
/* istanbul ignore next */
127+
return attr !== 'class' && (
131128
el.hasAttribute(':' + attr) ||
132129
el.hasAttribute('v-bind:' + attr)
133130
)

test/unit/specs/misc_spec.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,9 +289,8 @@ describe('Misc', function () {
289289
}
290290

291291
document.body.appendChild(el)
292-
293292
el.setAttribute(':title', '')
294-
if(el.getAttribute('title') === null) {
293+
if (el.getAttribute('title') === null) {
295294
// this browser does not need this test
296295
done()
297296
return

0 commit comments

Comments
 (0)