Skip to content

Commit

Permalink
properly initialize props with wrong initial type
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Nov 18, 2015
1 parent 9dc0d7d commit 6f7361b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/util/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ function getIsBinding (el) {
*/

export function initProp (vm, prop, value) {
if (assertProp(prop, value)) {
var key = prop.path
vm[key] = vm._data[key] = value
}
const key = prop.path
vm[key] = vm._data[key] = assertProp(prop, value)
? value
: undefined
}

/**
Expand Down

0 comments on commit 6f7361b

Please sign in to comment.