refactor: minor tweak on conditions order (#6992)

This commit is contained in:
ZhangJan 2017-11-03 23:39:16 +08:00 committed by Evan You
parent 79c0d7bcfb
commit e80104eb63

View File

@ -559,8 +559,8 @@ function processAttrs (el) {
// #6887 firefox doesn't update muted state if set via attribute
// even immediately after element creation
if (!el.component &&
platformMustUseProp(el.tag, el.attrsMap.type, name) &&
name === 'muted') {
name === 'muted' &&
platformMustUseProp(el.tag, el.attrsMap.type, name)) {
addProp(el, name, 'true')
}
}