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

BB: Ti.UI.Window close() does not work

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: BlackBerry
    • Labels:
    • Environment:

      Simulator BB OS 10.0.9.386
      OsX Mountain Lion

      Ti SDK

      version=2.2.0
      module_apiversion=2
      timestamp=10/19/12 11:58
      githash=6bf86d6

      Description

      The window close() method does not work

      var win = Ti.UI.createWindow({
      	backgroundColor:'#f00'
      });
       
      win.open();
       
       
      var open_lbl = Ti.UI.createLabel({
      	text:'Open yellow window',
      	backgroundColor:'#fff'
      });
       
      win.add(open_lbl);
       
       
      var yellow_win =  Ti.UI.createWindow({
      	backgroundColor:'#ff0'
      });
       
       
       
      var close_lbl = Ti.UI.createLabel({
      	top:100,
      	backgroundColor:'#0f0',
      	text:'Close yellow window'
      });
       
      yellow_win.add(close_lbl);
       
       
       
       
      open_lbl.addEventListener('click', function(){
      	yellow_win.open();
      });
       
       
      close_lbl.addEventListener('click', function(){
      	try {
      		yellow_win.close();
      	}
      	catch(err) {
      		alert(err);
      	}
      });
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                joshroesslein Josh Roesslein
                Reporter:
                rborn Dan Tamas
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration