themightychris
29 Apr 2011, 12:09 PM
When I press the button in this app, the console output is:
click
index.js:20after call #1
index.js:20after call #2
Tested with sencha 1.0 and 1.1 with safari 5 and chrome 12 with same result.
I've used the after option before without issue, so I'm pretty lost as to why this is happening...
Can anyone confirm my sanity?
var n = 0;
Ext.onReady(function() {
var viewport = new Ext.Panel({
fullscreen: true
,layout: 'card'
,items: {html: 'home card'}
,dockedItems: [{
xtype: 'toolbar'
,items: [{
text: 'next'
,scope: this
,handler: function() {
console.info('click');
viewport.setActiveItem(new Ext.Component({html: 'second card'}), {
type: 'slide'
,after: function() {
n++;
console.info('after call #%s', n);
}
});
}
}]
}]
});
});
click
index.js:20after call #1
index.js:20after call #2
Tested with sencha 1.0 and 1.1 with safari 5 and chrome 12 with same result.
I've used the after option before without issue, so I'm pretty lost as to why this is happening...
Can anyone confirm my sanity?
var n = 0;
Ext.onReady(function() {
var viewport = new Ext.Panel({
fullscreen: true
,layout: 'card'
,items: {html: 'home card'}
,dockedItems: [{
xtype: 'toolbar'
,items: [{
text: 'next'
,scope: this
,handler: function() {
console.info('click');
viewport.setActiveItem(new Ext.Component({html: 'second card'}), {
type: 'slide'
,after: function() {
n++;
console.info('after call #%s', n);
}
});
}
}]
}]
});
});