Open Bug 820788 Opened 7 years ago

use of init() in scripts unclear


(Other Applications :: ChatZilla, defect)

Not set


(Not tracked)



(Reporter: cuteangel24, Assigned: rginda)


User Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20100101 Firefox/17.0
Build ID: 20121128204232

Steps to reproduce:

Chatzilla scripts are supposed to provide an init() function, but it is unclear what the difference is between putting code in init() and just leaving it at the top level of the script.

That is, there is at least some documentation missing. Can init() be called more than once per lifetime of the script? If no, why does it exist at all? If yes, under what circumstances, and what code should be put in init that can't be left at the top level of the script or be put in enable()?
You need to log in before you can comment on or make changes to this bug.