Uploaded image for project: 'Titanium Mobile'
  1. Titanium Mobile
  2. TIMOB-6891

Android: Tab's window property is null if set via creation arguments

    Details

      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:

      app.js

      Ti.UI.createTab({window: Ti.UI.createWindow()}).
        window.addEventListener("focus", function(){});
      

      This happens because tab1.window is null, and it shouldn't be.

        Issue Links

          Activity

          Hide
          billdawson Bill Dawson added a comment -
          Show
          billdawson Bill Dawson added a comment - Pull request ready https://github.com/appcelerator/titanium_mobile/pull/1112
          Hide
          wluu Wilson Luu added a comment -

          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)

          Show
          wluu Wilson Luu added a comment - 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)
          Hide
          mpettiford Michael Pettiford added a comment -

          Reopening/closing to add/remove labels

          Show
          mpettiford Michael Pettiford added a comment - Reopening/closing to add/remove labels
          Hide
          pwang Ping Wang added a comment - - edited

          This issue happens on master(3.1.0) and 3_0_X on rhino only.

          Show
          pwang Ping Wang added a comment - - edited This issue happens on master(3.1.0) and 3_0_X on rhino only.
          Show
          pwang Ping Wang added a comment - 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
          Hide
          tsmolich Tamila Smolich added a comment -

          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)

          Show
          tsmolich Tamila Smolich added a comment - 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)
          Hide
          shameerj Shameer Jan added a comment -
          Show
          shameerj Shameer Jan added a comment - Anvil testcase PR https://github.com/appcelerator/titanium_mobile/pull/4967

            People

            • Assignee:
              pwang Ping Wang
              Reporter:
              billdawson Bill Dawson
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development

                  Poker Sessions

                  This issue is currently not assigned to any Poker Session.