A clone of ssh://git@git.pep-security.lu:23000/thunderbird/pEpForThunderbird.git, until that one is open source again.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
907 B

  1. ## The `window` object
  2. In `bootstrap.js` we subscribe to notifications from a `ww` service
  3. that calls a `paint` method when the `window` object is globally
  4. accessible as a global variable, for every open window.
  5. From there we can pass it to all modules that want to access
  6. it. Outside of this context we cannot assume that `window` is
  7. accessible. An `unpaint` notification will be sent when the window is
  8. closed.
  9. ## Updating the options
  10. When we want to change the plugin preferences we can do so by
  11. modifying three areas in the code:
  12. - `options.xul` the markup, here you define the identifier for the option that will be used also elsewhere
  13. - `prefsFactory.js` update getter and setter functions corresponding to the option and the default value
  14. - `options.js` update `addAll`, the window load handler, the dialogAccept handler
  15. ## Compat and Prefs
  16. Are defined in `options.js` and globally available