When we use Jetpack 0.6, we could manifest something like this,
var manifest = {
settings: [
{
name: "foo",
type: "group",
label: "Twitter Account",
settings: [
{ name: "twitterId", type: "text", label: "Username" },
开发者_如何学编程 { name: "twitterPass", type: "password", label: "Password" }
]
}
]
};
jetpack.future.import("storage.settings");
Does anyone know how to do same thing in Jetpack SDK 0.9.
Which module should I use?the import has changed to something like: var simpleStorage = require("simple-storage");
see: https://jetpack.mozillalabs.com/sdk/0.9/docs/#module/addon-kit/simple-storage
精彩评论