PDA

View Full Version : [FIXED] Ext.Function.createBuffered() ignores the caller's arguments



n3rd
9 Nov 2011, 3:00 AM
A function created with Ext.Function.createBuffered() (http://docs.sencha.com/ext-js/4-0/#!/api/Ext.Function-method-createBuffered) does not receive the arguments set by the caller.


var f = Ext.Function.createBuffered(function () {
console.dir(arguments);
}, 50, window, ["foo"]);

f(1, 2, 3); // outputs ["foo"] as expected

But:


var f = Ext.Function.createBuffered(function () {
console.dir(arguments);
}, 50);

f(1, 2, 3); // outputs [0] when it should be [1, 2, 3]

mitchellsimoens
9 Nov 2011, 4:36 AM
Thank you for the report!

n3rd
10 Nov 2011, 2:37 AM
It seems the same applies to Ext.Function.createDelayed().

Is there a hotfix available?

mitchellsimoens
10 Nov 2011, 4:08 AM
It seems the same applies to Ext.Function.createDelayed().

Is there a hotfix available?

If you need a fix right away, you can open a ticket at the support portal and you must have the Premium support subscription