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,9 +23,9 @@ export default {
(vnode.context.popperElm &&
vnode.context.popperElm.contains(e.target))) return;
if (binding.expression) {
if (binding.expression &&
el[ctx].methodName &&
vnode.context[el[ctx].methodName] &&
vnode.context[el[ctx].methodName]) {
vnode.context[el[ctx].methodName]();
} else {
el[ctx].bindingFn && el[ctx].bindingFn();