Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-1005

Functions and currentWindow on Android broken

    Details

      Description

      {html}<div><p>Platform 1.3.0 OS MacOSX/WinXP, iPhone emulator 3.1.3, android
      emulator 2.1</p>
      <p>Please take a look at example on the documentation page for
      Titanium.UI.Window, "Passing data" section. You have variable a and
      method b. I tried to reproduce this in my project. In app.js I have
      method, variable, TabGroup, 2 Tabs which have windows created with
      url property and a and b attached. I can access a and b from child
      window on iPhone, but only variable a on Android. When I try to
      call method b, smth. like Titanium.UI.currentWindow.b() I get an
      error from rhino JS library, smth. like "b is not a method, it's an
      object and not callable". Actually it's true, on Android, b is an
      object of KrollContext, not function, I can see this when I print
      Titanium.UI.currentWindow.b to standard output. I even can call
      Titanium.UI.currentWindow.b.call() and it even works but I can't
      pass any arguments to b, anyway, IMHO this feature is totally
      broken on Android. iPhone is OK here</p></div>{html}

        Attachments

          Activity

            People

            • Assignee:
              blainhamon Blain Hamon
              Reporter:
              konstantin Konstantin
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-963
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration