Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code