Replacing window.setTimeout
<p>Guys,
   I'm thinking of replacing window.setTimeout with a function of my own (for example we could have a generic error handler for exceptions thrown in callbacks). </p>

<p>The code will be along these lines:</p>

<pre><code>var nativeSetTimeout = window.setTimeout;
window.setTimeout = function(fn, interval){
    nativeSetTimeout(function(){
            try{
               fn();
            }catch(e){
                // handle errors coming from the execution of fn
            }
        }, interval);
}
</code></pre>

<p>Given that my app will stay in a single iframe, is there any outstanding issue that I should be concerned about?</p>
