Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6891] Android: Tab's window property is null if set via creation arguments

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-11-13T00:23:05.000+0000
Affected Version/sRelease 1.8.0.1
Fix Version/sSprint 2011-52, Release 2.0.0, Release 1.8.1, Release 3.0.0, Release 3.1.0, 2012 Sprint 23 API, 2012 Sprint 23
ComponentsAndroid
Labels3.0.0beta2, module_window, parity, qe-testadded
ReporterBill Dawson
AssigneePing Wang
Created2011-12-27T13:32:05.000+0000
Updated2013-12-10T06:19:14.000+0000

Description

Fail case / Test case

This app.js will show a "cannot call method 'addEventListener' of null" error in the fail case. If you can load this without the error, then it's fixed:
Ti.UI.createTab({window: Ti.UI.createWindow()}).
  window.addEventListener("focus", function(){});
This happens because tab1.window is null, and it shouldn't be.

Comments

  1. Bill Dawson 2011-12-29

    Pull request ready https://github.com/appcelerator/titanium_mobile/pull/1112
  2. Wilson Luu 2012-01-12

    Closing bug. Verified fix on: SDK build: 1.9.0.v20120111233134 Runtime: V8, Rhino Titanium Studio, build: 1.0.8.201201111843 Device: Droid 3 (2.3.4)
  3. Michael Pettiford 2012-01-31

    Reopening/closing to add/remove labels
  4. Ping Wang 2012-10-16

    This issue happens on master(3.1.0) and 3_0_X on rhino only.
  5. Ping Wang 2012-11-12

    PR for master(3.1.0): https://github.com/appcelerator/titanium_mobile/pull/3412 PR for 3_0_X: https://github.com/appcelerator/titanium_mobile/pull/3413
  6. Tamila Smolich 2012-12-05

    Closing as fixed. Tested on: Titanium Studio, build: 3.0.0.201211301903 Titanium SDK, builds: 3.0.0.v20121204181658; 3.1.0.v20121203181001 Runtime: V8, Rhino Devices: Motorola RAZR i XT890 (4.0.4)
  7. Shameer Jan 2013-12-10

    Anvil testcase PR https://github.com/appcelerator/titanium_mobile/pull/4967

JSON Source