[TIMOB-25701] Add support for promises to Titanium and Alloy
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Critical |
Status | Closed |
Resolution | Done |
Resolution Date | 2018-02-21T19:17:09.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | CLI |
Labels | alloy, globals, javascript, promise, titanium |
Reporter | Brenton House |
Assignee | Unknown |
Created | 2018-01-24T14:28:03.000+0000 |
Updated | 2020-01-28T15:23:01.000+0000 |
Description
As a developer,
I want to be able to use libraries that depend on JavaScript Promises,
So that I can have out-0f-box support for a wider range of modules.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises
I have been using JavaScript promises in my code for years but the only way to use modules that depend on Promises is to add support myself. It would be great if Titanium added built-in support for Promises.
I think it would be a relatively small change. Just add bluebird (http://bluebirdjs.com/docs/getting-started.html) and add a global variable "Promise".
Let me know if you have any questions. Thanks!
Available in 7.1.0 and later as part of the ES6+ support. No additional libraries required anymore.
Closed as completed. If this is in error, please reopen.