GitHub Issue | n/a |
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-11-13T00:23:05.000+0000 |
Affected Version/s | Release 1.8.0.1 |
Fix Version/s | Sprint 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 |
Components | Android |
Labels | 3.0.0beta2, module_window, parity, qe-testadded |
Reporter | Bill Dawson |
Assignee | Ping Wang |
Created | 2011-12-27T13:32:05.000+0000 |
Updated | 2013-12-10T06:19:14.000+0000 |
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.
Pull request ready https://github.com/appcelerator/titanium_mobile/pull/1112
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)
Reopening/closing to add/remove labels
This issue happens on master(3.1.0) and 3_0_X on rhino only.
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
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)
Anvil testcase PR https://github.com/appcelerator/titanium_mobile/pull/4967