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

Windows: close window throws unknown exception

    Details

    • Story Points:
      5
    • Sprint:
      2016 Sprint 06 SDK

      Description

      It's affected 5.2.0.

      Use case (working on ios/android):

      Window_1 opens Window_2 -> Window_2 opens Window_3 -> Window_3 closes Window_2 -> App throws unknown exception.

      index.js:

      function onClick(e) {
          var c = Alloy.createController('second', {
          	prevWin: $.win
          }); 
          var w = c.getView();
          w.open();
      }
      $.win.open();
      

      index.xml:

      <Alloy>
          <Window id='win' backgroundColor="green">
      		 <Button backgroundColor="red" width='100dp' height='50dp' onClick="onClick" />
          </Window>
      </Alloy>
      


      second.js:

      var args = $.args;
      function onClick() {
      	 var c = Alloy.createController('third', {
          	prevWin: $.win
          }); 
      	var w = c.getView();
      	w.open();
      }
      

      second.xml:

      <Alloy>
          <Window id='win' backgroundColor="blue">
      		<Button backgroundColor="yellow" width='100dp' height='50dp' onClick="onClick" />
      	</Window>
      </Alloy>
      


      third.js:

      var args = $.args;
      function onClick() {
      	args.prevWin.close();
      }
      

      third.xml:

      <Alloy>
      	<Window id='win' backgroundColor="orange">
      		<Button backgroundColor="gray" width='100dp' height='50dp' onClick="onClick" />
      	</Window>
      </Alloy>
      

        Attachments

          Activity

            People

            • Assignee:
              kiguchi Kota Iguchi
              Reporter:
              zozo4kin Zakhar Zhuravlev
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • It looks like Backbone Issue Sync is not enabled for your project.

                  Git Source Code