Hi, I found a little problem with Android ICallBack and fat module.exports
args. For example If I load this code:
<JavaScript>
var stores = Observable({
"id": 4,
"name": "Cycling Shop",
"description": "La mas destacada tienda de ciclismo, con venta de repuestos y refacciones",
"profile_image": "http://mydomain,com/img/stores/rueda-libre.jpg",
"cover_image": "http://mydomain,com/img/stores/rueda-libre-bk.jpg",
"category_image": "http://mydomain,com/img/categories/tiendas.png",
"geo_lat": 22.156017,
"geo_lng": -101.003913,
"rating": 3,
"followed": 9
}, {
"id": 57,
"name": "Samba Smoothie",
"description": "¡Productos naturales, nutritivos y especialmente balanceados para tus actividades diarias!",
"profile_image": "http://mydomain.com/dynamic/branches/samba-smoothie/profile-image-57.jpg",
"cover_image": "http://mydomain.com/dynamic/branches/samba-smoothie/cover-image-57.jpg",
"category_image": "http://mydomain.com/img/categories/restaurantes.png",
"geo_lat": 22.1478936,
"geo_lng": -101.0260151,
"rating": 0,
"followed": 2
}
// ... and more and more stores
);
}
module.exports = {
stores : stores
};
</JavaScript>
<Button Clicked="{openStore}" />
Setting the ICallback from Java I get all the module.exports
context and it’s painfully slow to trigger the event openStore
. The problem is with key “data” of the hashMap(it could be a really long string). Is it possible via Java to hide the data
key?