fix typo in clickoutside.js (#1848)

pull/1857/head
JeOam 2016-12-20 11:34:16 +08:00 committed by baiyaaaaa
parent ead186153f
commit 65aaee6353
1 changed files with 3 additions and 3 deletions

View File

@ -23,10 +23,10 @@ export default {
(vnode.context.popperElm && (vnode.context.popperElm &&
vnode.context.popperElm.contains(e.target))) return; vnode.context.popperElm.contains(e.target))) return;
if (binding.expression) { if (binding.expression &&
el[ctx].methodName && el[ctx].methodName &&
vnode.context[el[ctx].methodName] && vnode.context[el[ctx].methodName]) {
vnode.context[el[ctx].methodName](); vnode.context[el[ctx].methodName]();
} else { } else {
el[ctx].bindingFn && el[ctx].bindingFn(); el[ctx].bindingFn && el[ctx].bindingFn();
} }