From f9720ff2cd32dfa72a1b083e1d2452d5ff1b44d8 Mon Sep 17 00:00:00 2001 From: "Chris A. Taylor" Date: Tue, 19 Feb 2013 17:28:28 -0800 Subject: [PATCH] Fix null evt.trace --- src/event/input/dispatch.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/event/input/dispatch.js b/src/event/input/dispatch.js index c6f84582..00e33c0f 100644 --- a/src/event/input/dispatch.js +++ b/src/event/input/dispatch.js @@ -115,8 +115,10 @@ exports.clearOverState = function (id) { if (evt) { delete exports._activeInputOver[id]; var trace = evt.trace; - for (var i = 0, view; view = trace[i]; ++i) { - view.__input.onLeave(id); + if (trace) { + for (var i = 0, view; view = trace[i]; ++i) { + view.__input.onLeave(id); + } } } } else {