-
25 Apr 2012 4:58 PM #1
on() delay property only work the first time.
on() delay property only work the first time.
I have two controller, A and B
B have a listener like this
Code:this.getApplication().on({ showSheet: this.showSheet, scope: this, delay: 3000 })
When i fireevent from A "showSheet" the delay is apply fine, but the second time: delay is not applied.
the execution is direct.
Someone can check if its a bug?
Thanks.
-
26 Apr 2012 5:39 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 433
This test case is delaying 3 seconds using 2.0.1:
Code:Ext.define('Test.controller.Main', { extend : 'Ext.app.Controller', init : function(app) { console.log('adding listener'); app.on({ showSheet : 'showSheet', scope : this, delay : 3000 }); }, showSheet : function() { console.log('showSheet captured'); } }); Ext.application({ name : 'Test', controllers : [ 'Main' ], launch : function() { console.log('firing event'); this.fireEvent('showSheet', this); } });Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
26 Apr 2012 7:13 AM #3Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,651
- Vote Rating
- 14
Do you have a full test case which may show the issue?
-
26 Apr 2012 7:41 AM #4
Im using 2.0.0
Now i talk about a issue in my app, i need extract it and setup a minimal test case.
mitchellsimoens Try launch later other time the same event later delay succeed.
Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.


Reply With Quote