Looks like we can't reproduce the issue or there's a problem in the test case provided.
-
Sencha Premium Member
[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);
}
});
}
});
-
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