var module = require("pages/dictionary");
Ti.API.info(module.dictionary);
A:[
{title:"ah boy", definition:"refers to a boy"},
{title:"ah gal", definition:"refers to a girl"}
],
B:[
{title:"bola", definition:"refers to a ball"},
{title:"boh", definition:"refers to nothing"}
],
//--- so on and on
};
exports.dictionary = dictionary;
Ti.API.info(module.dictionary);
// ---- dictionary.js
var dictionary = {A:[
{title:"ah boy", definition:"refers to a boy"},
{title:"ah gal", definition:"refers to a girl"}
],
B:[
{title:"bola", definition:"refers to a ball"},
{title:"boh", definition:"refers to nothing"}
],
//--- so on and on
};
exports.dictionary = dictionary;
No comments:
Post a Comment