Skip to content

Commit

Permalink
removed try catch block for document.hasFocus
Browse files Browse the repository at this point in the history
  • Loading branch information
corbanbrook committed Aug 14, 2010
1 parent 8736f2b commit f5a6896
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions processing.js
Original file line number Diff line number Diff line change
Expand Up @@ -5091,9 +5091,9 @@

looping = window.setInterval(function() {
try {
try {
if (document.hasFocus instanceof Function) {
p.focused = document.hasFocus();
} catch(e) {}
}
p.redraw();
} catch(e_loop) {
window.clearInterval(looping);
Expand Down

0 comments on commit f5a6896

Please sign in to comment.