Results 1 to 2 of 2

Thread: [PR4] NavigationView pop event parameter 'view' is not the popped view

    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha Premium Member
    Join Date
    Nov 2011
    Posts
    10
    Vote Rating
    0
      0  

    Default [PR4] NavigationView pop event parameter 'view' is not the popped view

    The 'pop' event handler for NavigationView is supposed to include the popped view, but the view parameter is the 'new' view (or the view returned to after popping). Please see the following code which exhibits this bug:

    Code:
    Ext.application({
    name: 'NavigationView Example',
    
    launch: function() {
    var view = Ext.create('Ext.NavigationView', {
    fullscreen: true,
    
    items: [{
    title: 'First',
    items: [{
    xtype: 'button',
    text: 'Push a new view!',
    handler: function() {
    view.push({
    title: 'Second',
    html: 'Second view!'
    });
    }}]}]
    });
    
    view.on({
    push: function(view, pushed) {
    console.log('pushed ' + pushed.title);
    },
    
    pop: function(view, popped) {
    console.log('popped ' + popped.title);
    }
    });
    }
    });
    

  2. #2
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    19
      0  

    Default

    Thank you for the report, this has been fixed for the next release and was also reported here:

    http://www.sencha.com/forum/showthre...ew-to-listener

    Sencha Inc

    Jamie Avins

    @jamieavins

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •