This commit is contained in:
Leo Horie 2016-11-04 12:34:39 -04:00
parent ff7ce37476
commit 85eed94172
2 changed files with 13 additions and 12 deletions

View file

@ -912,7 +912,7 @@ var _14 = function($window) {
if (typeof onevent === "function") onevent.call(element, e)
return result
}
if (key1 in element) element[key1] = callback
if (key1 in element) element[key1] = typeof value2 === "function" ? callback : null
else {
var eventName = key1.slice(2)
if (vnode.events === undefined) vnode.events = {}