Don't delete timer object on clearTimeout.

I've heard delete is inefficient in v8. Better to let the garbage collector
take care of it naturally.
pull/22966/head
Ryan Dahl 2009-09-28 16:13:33 +02:00
parent 095470854b
commit 459d644a5a
1 changed files with 0 additions and 1 deletions

View File

@ -46,7 +46,6 @@ function setInterval (callback, repeat) {
function clearTimeout (timer) {
timer.stop();
delete timer;
}
clearInterval = clearTimeout;