[Project_owners] JavaScript bug causes Mozilla crash

Karsten Düsterloh mnenhy at tprac.de
Mon Jan 5 17:48:26 EST 2004


Pete Collins aber hob zu reden an und schrieb:
>> In my PHP scripts I've used something like
>> 
>> if ( ! exists_function("some_function") ) {
>> 
>>    //Script goes here
>> 
>> }
>> 
>> 
>> Is that possible in JS?  That would avoid the loading of scripts more 
>> than once.
> 
> typeof(some_function);

Or
	if ("some_function" in this)
	{...}


Karsten


More information about the Project_owners mailing list