Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7651] Ti API: Ti.UI.Tab.close arguments differ by platform

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2020-01-09T21:33:20.000+0000
Affected Version/sRelease 1.7.5
Fix Version/sn/a
ComponentsTiAPI
Labelsparity, tbs-2.1.0
ReporterArthur Evans
AssigneeUnknown
Created2012-02-14T12:07:53.000+0000
Updated2020-01-09T21:33:20.000+0000

Description

On iOS, the Tab.close() method takes two arguments: - a required Window argument (the window to close) - an optional options dict (close options) On Android and Mobile Web, close() only takes the second argument. So: myTab.close(window) Fails on Android, and: myTab.close() Fails on iOS. As an additional complication, however, I believe tab.close() is mostly used on iOS, so the tab group can track which window is open. On Android and MobileWeb, applications can achieve the same ends by calling window.close() directly.

Comments

  1. Arthur Evans 2012-02-14

    If any changes are made to the APIs as a result of this issue, documentation will need to be updated.
  2. Alan Hutton 2020-01-09

    It has been decided that this issue should be closed as “Won’t do.” This issue is out of date with our current supported SDK release (7.5.2.GA as of the date of closure), and out of date with mobile OS versions. If community members feel that the issue is still valid, please create a new ticket. Please reference this closed ticket number, include SDK used, comments, and code that demonstrates/reproduces the issue.

JSON Source