[Project_owners] Programming guidelines for extensions and add-ons

Brian King brian at mozdev.org
Mon Sep 19 19:32:09 EDT 2005


Karsten Düsterloh wrote:

> I'd say that the most important rule should be:
> 
> *Don't pollute the global namespace!*

Absolutely. If at all possible, wrap *all* of your extension JS code in 
a JS class.

Another tip:

When adding your own preferences, always prepend it with extensions.
e.g.
extensions.chromedit.fontsize

- Brian


More information about the Project_owners mailing list