Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: iOS

      Description

      If you forget to specify an event handler type (as in the example below), the application crashes and does not provide any feedback to the developer aside from an Objective-C stack trace in the console which does not indicate the source of the problem. Marking as high priority because this is very difficult for a developer to debug if they have made this typo. The corresponding error on Android provides a line number and an IllegalArgumentException, indicating that two arguments were expected, which is enough information to debug.

      var win = Ti.UI.createWindow({
          backgroundColor:'#fff'
      });
       
      var v1 = Ti.UI.createView({
          height:150,
          width:200,
          backgroundColor:'red'
      });
      win.add(v1);
       
      v1.addEventListener(function() { //note the lack of a 'click' argument first
          Ti.API.info('hello world!');
      });
       
      win.open();
      

        Attachments

          Activity

            People

            • Assignee:
              ingo Ingo Muschenetz
              Reporter:
              kwhinnery Kevin Whinnery
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration