mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Merge pull request #62 from dram/update-focus-fix
Use break to avoid uncaught exception in View.updateFocus
This commit is contained in:
commit
a76d47fcf1
1 changed files with 1 additions and 1 deletions
|
@ -432,7 +432,7 @@ var View = this.View = Base.extend(Callback, /** @lends View# */{
|
||||||
var view = View._views[i];
|
var view = View._views[i];
|
||||||
if (view && view.isVisible()) {
|
if (view && view.isVisible()) {
|
||||||
View._focused = tempFocus = view;
|
View._focused = tempFocus = view;
|
||||||
throw Base.stop;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue