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

Windows: Hyperloop addEventListener doesn't work

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 6.1.0, Hyperloop 2.1.0
    • Fix Version/s: Release 6.1.0
    • Component/s: Windows
    • Labels:
      None

      Description

      Use of Hyperloop addEventListener throws "unknow exception".

      var win = Ti.UI.createWindow({ backgroundColor: 'green' }),
          Button = require('Windows.UI.Xaml.Controls.Button'),
          button = new Button();
       
      button.Content = "PUSH";
      button.addEventListener('Tapped', function (e) {
          alert('pushed');
      });
       
      win.add(button);
      win.open();
      

      Expected
      Pushing "PUSH" button should show "pushed" dialog.

      Note
      After some investigation, I found that at some point of Titanium SDK update, we updated uglify-js but it looks like it contains breaking changes. Uglify-js doesn't resolve constructor (init property of AST_Symbol on its scope analyzer. It looks like there was breaking changes there, maybe from uglify-js 2.8.x, because I saw uglify-js 2.7.x (Titanium SDK 6.1.0.v20170315131319) worked fine.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kiguchi Kota Iguchi (Inactive)
                Reporter:
                kiguchi Kota Iguchi (Inactive)
                Reviewer:
                Gary Mathews
                Tester:
                Samir Mohammed
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration