Revert "Pass vnode as second argument"
This commit is contained in:
parent
0587139252
commit
b24c37c42d
3 changed files with 2 additions and 37 deletions
|
|
@ -558,7 +558,7 @@ module.exports = function($window) {
|
|||
function updateEvent(vnode, key, value) {
|
||||
var element = vnode.dom
|
||||
var callback = typeof onevent !== "function" ? value : function(e) {
|
||||
var result = value.call(element, e, vnode)
|
||||
var result = value.call(element, e)
|
||||
onevent.call(element, e)
|
||||
return result
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,7 +28,6 @@ o.spec("event", function() {
|
|||
o(spy.this).equals(div.dom)
|
||||
o(spy.args[0].type).equals("click")
|
||||
o(spy.args[0].target).equals(div.dom)
|
||||
o(spy.args[1]).equals(div)
|
||||
o(onevent.callCount).equals(1)
|
||||
o(onevent.this).equals(div.dom)
|
||||
o(onevent.args[0].type).equals("click")
|
||||
|
|
@ -65,7 +64,6 @@ o.spec("event", function() {
|
|||
o(spy.this).equals(div.dom)
|
||||
o(spy.args[0].type).equals("click")
|
||||
o(spy.args[0].target).equals(div.dom)
|
||||
o(spy.args[1]).equals(div)
|
||||
o(onevent.callCount).equals(1)
|
||||
o(onevent.this).equals(div.dom)
|
||||
o(onevent.args[0].type).equals("click")
|
||||
|
|
@ -87,7 +85,6 @@ o.spec("event", function() {
|
|||
o(spy.this).equals(div.dom)
|
||||
o(spy.args[0].type).equals("transitionend")
|
||||
o(spy.args[0].target).equals(div.dom)
|
||||
o(spy.args[1]).equals(div)
|
||||
o(onevent.callCount).equals(1)
|
||||
o(onevent.this).equals(div.dom)
|
||||
o(onevent.args[0].type).equals("transitionend")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue