Skip to content

Commit

Permalink
fix input return value
Browse files Browse the repository at this point in the history
  • Loading branch information
hiyuki committed Feb 22, 2019
1 parent ad2d775 commit ea35f03
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/src/platform/builtInMixins/proxyEventMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export default function proxyEventMixin () {
const target = $event.currentTarget || $event.target
const bindConfigs = target.dataset.__bindconfigs || {}
const curEventConfig = bindConfigs[type] || bindConfigs[fallbackType] || []
let returnedValue
curEventConfig.forEach((item) => {
const callbackName = item[0]
if (callbackName) {
Expand All @@ -24,12 +25,13 @@ export default function proxyEventMixin () {
}
}) : [$event]
if (typeof this[callbackName] === 'function') {
this[callbackName].apply(this, params)
returnedValue = this[callbackName].apply(this, params)
} else {
console.warn(`[${callbackName}] is not function`)
}
}
})
return returnedValue
},
__model (expr, $event) {
let parent
Expand Down

0 comments on commit ea35f03

Please sign in to comment.