[TIMOB-18668] Windows:: JSExport API CreateObject<T>() should be removed
| GitHub Issue | n/a |
|---|---|
| Type | Story |
| Priority | None |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2015-03-09T15:49:54.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 4.1.0 |
| Components | Windows |
| Labels | n/a |
| Reporter | Kota Iguchi |
| Assignee | Kota Iguchi |
| Created | 2015-03-09T05:57:19.000+0000 |
| Updated | 2017-03-13T22:02:13.000+0000 |
Description
Currently HAL has multiple ways to create JSExport object but basically following two API's are meant to do same thing.
auto object1 = js_context.CreateObject<Widget>();
auto object2 = js_context.CreateObject(JSExport<Widget>::Class());
I found there's no reason to keep the first one. It actually has a issue around TIMOB-18461.
https://github.com/appcelerator/titanium_mobile_windows/pull/153 https://github.com/appcelerator/HAL/pull/38
Closing ticket as fixed.