nice, works in all browsers, solved my immediate problem.

thank you! :)

On Wed, Dec 27, 2006 at 01:09:33PM +0100, Choan C. Gálvez wrote:
> I was intrigued by the syntax used by Moe, as I had never seen it.
> 
> It's documented at
> <http://developer.mozilla.org/en/docs/DOM:window.setTimeout>, stating:
> 
> "Note that passing additional parameters to the function in the first
> syntax does not work in Internet Explorer."
> 
> Anyway, as I see possible uses for it, I've coded a helper:
> 
>               function setTimeoutH(f, t) {
>                       var params = [].slice.call(arguments, 2);
>                       var f2 = function() {
>                               f.apply(null, params);
>                       }
>                       return window.setTimeout(f2, t);
>               }
> 
> Hope it helps someone.
 

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to