Re: Updating a JavaScript module (jsm)
Michael Hofer <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xpfe |
|---|---|
| Message-ID | <[email protected]> |
Am 23.08.11 21:30, schrieb Michael Hofer:
> I can't effectively update my JSM modules anymore. I'm importing the
> modules with
>
> Components.utils.import("resource://...")
>
> from different places in my code (from xbl or regular js files). But the
> modules seem to be cached somewhere in between restarts of xulrunner
> (Where?).
[...]
Update after some fiddling:
*Some* changes in the JSM seem to trigger discarding the cache (maybe
changing symbol names of EXPORTED_SYMBOLS?). Starting the application
indirectly via full path to application.ini (-> no menus/dock icon) also
seems to trigger a reload (sometimes?). Can't say for sure - the caching
problem appears to happen somewhat inconsistent now.
This makes development a real pain. Where is the JSM code actually
cached? Maybe there's some file I can delete before application startup?
Thanks's for any help!
regards,
Michael