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

Android: event listener is not found when passed 'this'

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Invalid
    • Affects Version/s: Release 1.8.0
    • Fix Version/s: None
    • Component/s: Android
    • Environment:

      Nexus One 2.2.2, SDK 1.8.0.v20110922105247, Titanium Studio build: 1.0.5.201109091616

      Description

      1) Use the app.js below in a new project
      2) Launch application

      Expected results: View animates from red to orange to black.
      Actual results: View remains red.

      Notes:
      Logcat keeps returning "listener not found for eventName 'complete'"
      Issue was discovered when testing iOS fix for TIMOB-3160
      Code sample is essentially the example from: http://developer.appcelerator.com/apidoc/mobile/1.0/Titanium.UI.Animation

      app.js

      var win = Ti.UI.createWindow({ backgroundColor: 'purple' });
       
      var view = Titanium.UI.createView({
         backgroundColor:'red'
      });
      var animation = Titanium.UI.createAnimation();
      animation.backgroundColor = 'black';
      animation.duration = 4000;
      animation.addEventListener('complete',function()
      {
         animation.removeEventListener('complete',this);
         animation.backgroundColor = 'orange';
         view.animate(animation);
      });
      view.animate(animation);
       
      win.add(view);
       
      win.open();
      

        Attachments

          Activity

            People

            • Assignee:
              ingo Ingo Muschenetz
              Reporter:
              avaghti Alan Vaghti
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration