mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 14:56:20 +00:00
087fd6c348
In jQuery 1.8, if you focus something using jQuery, the jQuery focus event fires before the jQuery blur event, which is wrong. If you focus something natively, the events do fire in the correct order. See http://jsfiddle.net/WGy9h/4/ . Fortunately, the native events always fire in the correct order, so listen to those instead. Normally, we're not concerned with the order, but in ce.Surface we bind the same focus/blur handlers to a pair of two nodes, and then if the focus moves from one to the other, we'll get confused by the events being emitted in the wrong order. Change-Id: Ia585b42b6deb74ba55a2d55ce1922b1e04d85e81 |
||
---|---|---|
.. | ||
jquery | ||
jquery.uls | ||
oojs | ||
qunit | ||
rangy | ||
syntaxhighlight | ||
unicodejs | ||
ve | ||
ve-mw |