mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-10-25 22:28:27 +00:00
22 lines
650 B
ReStructuredText
22 lines
650 B
ReStructuredText
.. _components-imports:
|
|
|
|
==================
|
|
components-imports
|
|
==================
|
|
|
|
Rule Details
|
|
------------
|
|
|
|
Adds the filename of imported files e.g.
|
|
``Cu.import("some/path/Blah.jsm")`` adds Blah to the global scope.
|
|
|
|
The following patterns are supported:
|
|
|
|
- ``Cu.import("resource://devtools/client/shared/widgets/ViewHelpers.jsm");``
|
|
- ``loader.lazyImporter(this, "name1");``
|
|
- ``loader.lazyRequireGetter(this, "name2"``
|
|
- ``loader.lazyServiceGetter(this, "name3"``
|
|
- ``XPCOMUtils.defineLazyModuleGetter(this, "setNamedTimeout", ...)``
|
|
- ``loader.lazyGetter(this, "toolboxStrings"``
|
|
- ``XPCOMUtils.defineLazyGetter(this, "clipboardHelper"``
|