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
    slrobertson1 is on a distinguished road

      0  

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

    [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
    20
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      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

Thread Participants: 1