Skip to content

Commit

Permalink
Make sure try/catch/finally is used instead of try/finally [#421 stat…
Browse files Browse the repository at this point in the history
…e:resolved]
  • Loading branch information
Juriy Zaytsev committed Mar 19, 2009
1 parent 1a375da commit c7a5d34
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG
@@ -1,4 +1,6 @@
* . Use `in` operator when accessing property of a nodelist to prevent Safari <=2.0.4 from crashing (kangax)
* Make sure try/catch/finally is used instead of try/finally for clients without support for the latter one (e.g. Blackberry, IE) (Ville Koskinen, kangax)

* Use `in` operator when accessing property of a nodelist to prevent Safari <=2.0.4 from crashing (kangax)

* Add Element#clone as a safe wrapper of native `cloneNode`. (Andrew Dupont, kangax)

Expand Down
7 changes: 5 additions & 2 deletions src/lang/periodical_executer.js
Expand Up @@ -52,9 +52,12 @@ var PeriodicalExecuter = Class.create({
try {
this.currentlyExecuting = true;
this.execute();
} finally {
} catch(e) {
/* empty catch for clients that don't support try/finally */
}
finally {
this.currentlyExecuting = false;
}
}
}
});
});

0 comments on commit c7a5d34

Please sign in to comment.