PDA

View Full Version : [CLOSED] Ext.DatePicker.prototype.initComponent.createSeque nce



supera
Jan 20, 2012, 1:26 PM
Hi

After upgrading the ext.net to 2.x, this line donīt work:


Ext.DatePicker.prototype.initComponent = Ext.DatePicker.prototype.initComponent.createSeque nce(function () { this.addEvents("prevmonth", "nextmonth"); });

The problem is in createSequence...

Thanks.

Daniil
Jan 20, 2012, 1:50 PM
Hi,

Please see the CHANGELOG's item #40:
http://examples2.ext.net/#/Getting_Started/Release_Documents/CHANGELOG/

supera
Jan 20, 2012, 2:59 PM
Sorry, but I did not understand how to change the script...



Ext.DatePicker.prototype.initComponent = Ext.DatePicker.prototype.initComponent.createSeque nce(function () { this.addEvents("prevmonth", "nextmonth"); });
Ext.DatePicker.prototype.showPrevMonth = Ext.DatePicker.prototype.showPrevMonth.createSeque nce(function () { this.fireEvent("prevmonth"); });
Ext.DatePicker.prototype.showNextMonth = Ext.DatePicker.prototype.showNextMonth.createSeque nce(function () { this.fireEvent("nextmonth"); });


it's my fault, but I do not quite understand how to change the above script...
Can you be more specific?

Thanks for any help.

Daniil
Jan 20, 2012, 3:01 PM
Please replace:

Ext.DatePicker.prototype.showNextMonth = Ext.DatePicker.prototype.showNextMonth.createSeque nce(someFunction);
with

Ext.Function.createSequence(Ext.DatePicker.prototy pe.showNextMonth, someFunction);

supera
Jan 20, 2012, 3:20 PM
Works

Thank you very much, Daniil...