Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18668] Windows:: JSExport API CreateObject<T>() should be removed

GitHub Issuen/a
TypeStory
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2015-03-09T15:49:54.000+0000
Affected Version/sn/a
Fix Version/sRelease 4.1.0
ComponentsWindows
Labelsn/a
ReporterKota Iguchi
AssigneeKota Iguchi
Created2015-03-09T05:57:19.000+0000
Updated2017-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.

Comments

  1. Kota Iguchi 2015-03-09

    https://github.com/appcelerator/titanium_mobile_windows/pull/153 https://github.com/appcelerator/HAL/pull/38
  2. Lee Morris 2017-03-13

    Closing ticket as fixed.

JSON Source