preemptively avoid problems with text node targets

This commit is contained in:
David Greenspan
2012-05-10 15:08:51 -07:00
parent 2738e7798a
commit fbb0188d0e

View File

@@ -36,6 +36,9 @@ Meteor.ui._event._loadW3CImpl = function() {
SIMULATE_NEITHER : SIMULATE_FOCUSIN_FOCUSOUT;
var universalCapturer = function(event) {
if (event.target.nodeType === 3) // fix text-node target
event.target = event.target.parentNode;
var type = event.type;
var bubbles = event.bubbles;
var target = event.target;