Skip to content

Commit

Permalink
Merge pull request play-co#23 from gameclosure/fix-null-evt-trace
Browse files Browse the repository at this point in the history
Fix null evt.trace

Might be a sign of a more serious bug, but merging for now.
  • Loading branch information
Martin Hunt committed Feb 20, 2013
2 parents b98a570 + f9720ff commit 77979a9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/event/input/dispatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 77979a9

Please sign in to comment.