zombeerose
26 Aug 2008, 8:51 AM
I would like to understand the reasoning behind some variations in the naming conventions for selection models. An example comes about when comparing the Ext.tree.DefaultSelectionModel class and Ext.tree.MultiSelectionModel class. Both of these classes have almost identical methods with one main difference: getSelectedNode (returns node) vs getSelectedNodes (return node[]). I can understand the reasoning for the different methods until I notice the clearSelections method within the DefaultSM. The DefaultSM class that can only support 1 selection has a plural method that indicates the potential for multiple selections.
Can these be adjusted to be more consistent or could someone please slap me and provide the missing details that seem to be evading me?
Let the bashing begin :s
Can these be adjusted to be more consistent or could someone please slap me and provide the missing details that seem to be evading me?
Let the bashing begin :s