UNPKG

@titanium/turbo

Version:

<p align="center"> <img src="https://cdn.secure-api.org/images/turbo-title_400.png" /><br> <a href="https://www.npmjs.com/package/@titanium/turbo"> <img src="https://img.shields.io/npm/v/@titanium/turbo.png" /> </a> </p>

21 lines (19 loc) 453 B
exports.setBoxerStats = function(name) { var stats = Alloy.Globals.data[name]; if (OS_ANDROID) { $.name.text = 'Name: ' + name; } else { $.detail.title = name; } $.age.text = 'Age: ' + stats.age; $.height.text = 'Height: ' + stats.height; $.weight.text = 'Weight: ' + stats.weight; $.record.text = 'Record: ' + stats.record; // runtime unit tests if (!ENV_PROD) { require('specs/detail')($, { name: name, stats: stats }); } };