Make sure try/catch/finally is used instead of try/finally [#421 state:resolved]

This commit is contained in:
Juriy Zaytsev 2009-03-19 16:47:07 -04:00
parent 1a375daea2
commit c7a5d3480e
2 changed files with 8 additions and 3 deletions

View File

@ -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)

View File

@ -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;
}
}
}
});
});