mom_pece
17 Nov 2011, 6:34 AM
The callback returns undefined for the button param.
This is due to the
config.fn.call(
config.scope || null,
button.itemId || button.text,
config.input ? config.input.dom.value : null,
config
);
from the OnClick private method. Looks like you guys renamed itemId and text to private? _itemId and _text and only accessed them via getText() and so on setter/getter pattern.
But does that mean that you broke many other things that used to access the public members and should now be changed to use the accessors?
Why accessors anyway?
This is due to the
config.fn.call(
config.scope || null,
button.itemId || button.text,
config.input ? config.input.dom.value : null,
config
);
from the OnClick private method. Looks like you guys renamed itemId and text to private? _itemId and _text and only accessed them via getText() and so on setter/getter pattern.
But does that mean that you broke many other things that used to access the public members and should now be changed to use the accessors?
Why accessors anyway?