[TYPO3-core] FYI: #10375: 2 little JS-Errors that bug IE

Martin Kutschker masi-no at spam-typo3.org
Sun Feb 8 12:35:19 CET 2009


Steffen Kamper schrieb:
> Martin Kutschker schrieb:
> 
>>> But Steffen, please have a look what you pass as parameter to
>>> setTimeout(). The way you have written it is the *return value* of the
>>> function call busy.startTimer(). The reason is the brackets! You may
>>> pass either a function or a string to be evaluated.
>>
>> Docs with examples:
>>
>> https://developer.mozilla.org/en/DOM/window.setTimeout
>> http://msdn.microsoft.com/de-de/library/ms536753(en-us,VS.85).aspx
>>
>> Masi
> 
> thanks Masi. I will do a simple document to check different behaviour in
> FF ans IE to verify.

I don't expect any difference. Any expression (except strings) will be
evaluated at once. If it's a function *name* it will be called at the
given time.

Masi


More information about the TYPO3-team-core mailing list