PDA

View Full Version : [OPEN] Why Ext.tree.View. isAnimating is a private method?



LesJ
27 May 2014, 7:08 AM
Is there a reason why this method is private in 5.0 and 4.0?

I'd like to use this method to know if a tree node is expanding.

I expand a tree node when a checkbox is clicked. I'd like to ignore the 'checkchange' event when the tree checkbox is clicked in a quick succession and the node is still expanding. This method is helpful to me, but it's marked private.


Ext.define('Ext.tree.View', {
...
/**
* Checks if a node is currently undergoing animation
* @private
* @param {Ext.data.Model} node The node
* @return {Boolean} True if the node is animating
*/
isAnimating: function(node) {
return !!this.animQueue[node.getId()];
},
...

mitchellsimoens
29 May 2014, 4:11 AM
I've entered a request to make it public.