[TIMOB-7651] Ti API: Ti.UI.Tab.close arguments differ by platform
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2020-01-09T21:33:20.000+0000 |
Affected Version/s | Release 1.7.5 |
Fix Version/s | n/a |
Components | TiAPI |
Labels | parity, tbs-2.1.0 |
Reporter | Arthur Evans |
Assignee | Unknown |
Created | 2012-02-14T12:07:53.000+0000 |
Updated | 2020-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.
If any changes are made to the APIs as a result of this issue, documentation will need to be updated.
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.