[TIMOB-18678] Windows: HAL crashes on || syntax for method invocation
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-03-16T18:54:20.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 4.1.0 |
Components | Windows |
Labels | n/a |
Reporter | Christopher Williams |
Assignee | Kota Iguchi |
Created | 2015-03-10T22:09:49.000+0000 |
Updated | 2017-03-16T22:30:39.000+0000 |
Description
The Ti.Map.createView call is crashing in an odd way inside HAL in the profile.js controller once you've clicked on a person n the directory listing.
Try out the Corporate example and click a person to see the crash.
The root cause is the following syntax:
$.__views.mapview = (require("ti.map").createView || Ti.UI.createView)({
});
Changing it to a straight up createView call doesn't trigger the issue:
$.__views.mapview = require("ti.map").createView({
});
https://github.com/appcelerator/titanium_mobile_windows/pull/164
https://github.com/appcelerator/titanium_mobile_windows/pull/166
Closing ticket as fixed.