Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove requirement for explicit globals in translators #4

Closed
tjaffri opened this issue Jun 14, 2016 · 2 comments
Closed

Remove requirement for explicit globals in translators #4

tjaffri opened this issue Jun 14, 2016 · 2 comments
Assignees

Comments

@tjaffri
Copy link
Owner

tjaffri commented Jun 14, 2016

We currently have declarations like this at the bottom of each translator. We need to discover these globals automatically so these declarations are not required.

// globals for JxCore host
global.initDevice = module.exports.initDevice;
global.getBeatsPerMinute = module.exports.getBeatsPerMinute;
global.getRRInterval = module.exports.getRRInterval;
global.getEnergyExpended = module.exports.getEnergyExpended;
global.getContactStatus = module.exports.getContactStatus;
global.disconnect = module.exports.disconnect;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants