Threaded View
-
30 Jan 2013 5:55 AM #1
Why new nodes are registered by their internalId's only ?
Why new nodes are registered by their internalId's only ?
I was investigating some bug that appeared after switching from 4.1.3 to 4.2 regarding Tree structures, and I've found this change in the source:
4.1.3
4.2Code:registerNode : function(node, includeChildren) { var me = this; me.nodeHash[node.getId() || node.internalId] = node; (...) }
I'm wondering what is the advantage of the second approach ? In this case finding nodes by Id's won't work anymore. What if I'm adding a node with know Id and I want to reference it after adding to the structure ? I'm not considering this a bug but rather I'm interested what was the idea behind this change.Code:registerNode : function(node, includeChildren) { var me = this, children, length, i; me.nodeHash[node.internalId] = node; (...) },Using ExtGantt / ExtScheduler from Bryntum ? I can help you integrate and implement it.
You found a bug! We've classified it as
EXTJSIV-8493
.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.


Reply With Quote