canmove, Confirmed users
2,056
edits
(update documentation of JSON module now that it supports all Gecko 1.9.0 applications) |
m (→JSON) |
||
Line 18: | Line 18: | ||
Import this module into your extension to parse and stringify JSON in both Firefox 3.0 and 3.5 (and other Gecko-based applications, like Thunderbird) without checking the application's version each time. | Import this module into your extension to parse and stringify JSON in both Firefox 3.0 and 3.5 (and other Gecko-based applications, like Thunderbird) without checking the application's version each time. | ||
Note: don't import this into the global namespace! If you do, you'll hork native application code that expects the 1.9.0 API. Instead, import it into your own object like this: | Note: don't import this into the global namespace! If you do, you'll hork native application code that expects the Gecko 1.9.0 API. Instead, import it into your own object like this: | ||
let MyExtension = { | let MyExtension = { |