Uploaded image for project: 'Alloy'
  1. Alloy
  2. ALOY-1125

Alloy: Button - Click event doesn't trigger

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Hold
    • Affects Version/s: Alloy 1.5.0, Alloy 1.4.1
    • Fix Version/s: None
    • Component/s: Runtime
    • Environment:

      Alloy 1.4, Ti 3.3.0, iOS Simulator

    • Story Points:
      8
    • Sprint:
      2014 Sprint 18 Alloy, 2014 Sprint 19 Alloy

      Description

      Click event doesn't trigger correctly. After few (~3) clicks the event is not triggered at all. Button basically behave as it was without any event listener.

      Please look at it ASAP.

      index.js (only)

      var win = Ti.UI.createWindow();
       
      var table = Ti.UI.createTableView();
       
      var row = Ti.UI.createTableViewRow({
      	selectionStyle: Ti.UI.iPhone.TableViewCellSelectionStyle.NONE
      });
       
      var button = Ti.UI.createButton({
      	title: "Press!",
      	width: 50, height: 50,
      	backgroundColor: "red",
      	right: 25
      });
       
      var section = Ti.UI.createTableViewSection({
      	rows: [row]
      });
       
      button.addEventListener("click", function(e) {
      	console.log(e);
      });
       
      row.add(button);
      table.setData([section]);
       
      win.add(table);
      win.open();
      

        Attachments

          Activity

            People

            • Assignee:
              skypanther Tim Poulsen
              Reporter:
              sliang Shuo Liang
            • Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Source Code