Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18878] Windows: Hook loading of native types through require

GitHub Issuen/a
TypeImprovement
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-05-15T19:37:31.000+0000
Affected Version/sn/a
Fix Version/sRelease 4.1.0
ComponentsWindows
Labelsn/a
ReporterChristopher Williams
AssigneeChristopher Williams
Created2015-05-07T21:55:53.000+0000
Updated2017-03-14T20:14:44.000+0000

Description

When typical require returns no results, and the type if a native types (i.e. 'Windows.UI.Xaml.Controls.Page') we need a mechanism to register a callback/hook into the Windows global object to then create our type wrapper class for it, and return it as the module.exports value. We should allow searching for files matching that name in JS in case someone wants to have a JS overridden version that "wins" for require. Ideally we'd have the global allow registering the hook at runtime and have the actual hook int he user's app so it limits the scope of types it'd pull in.

Comments

  1. Christopher Williams 2015-05-15

    This is now working in the native branch
  2. Lee Morris 2017-03-14

    Closing ticket as fixed.

JSON Source