This is *super* subtle, and IMHO Chrome did exactly the wrong thing here.
This commit is contained in:
parent
76e585c523
commit
4f68984f2f
5 changed files with 40 additions and 0 deletions
|
|
@ -324,4 +324,16 @@ o.spec("event", function() {
|
|||
o(onevent.args[0].type).equals("transitionend")
|
||||
o(onevent.args[0].target).equals(div.dom)
|
||||
})
|
||||
|
||||
o("doesn't fire blur on removed nodes", function() {
|
||||
var spy = o.spy()
|
||||
var div = {tag: "div", attrs: {onblur: spy}}
|
||||
|
||||
render(root, [div])
|
||||
div.dom.focus()
|
||||
render(root, [])
|
||||
|
||||
o(spy.callCount).equals(0)
|
||||
o(onevent.callCount).equals(0)
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue