pjekel / cbtree

The Dijit Tree with Multi State Checkboxes, project code 'cbtree' , is a highly configurable dojo/dijit tree with support for multi-state checkboxes or third party widgets capable of presenting a so-called 'checked' state.
Other
75 stars 34 forks source link

Firefox: "too much recursion" #21

Closed oliver-frietsch closed 11 years ago

oliver-frietsch commented 11 years ago

When the tree exceeds a classic example size, Firefox 20.0.1 seems to reach its recursion limit. I initially couldn't believe that, but after turning on "extensions.firebug.showStackTrace" I saw a really impressive stack. I've extended sample "00" to show the problem. I guess that a fix is difficult, as saving function calls might require design changes...

oliver-frietsch commented 11 years ago

Sorry, currently I don't have GIT access, and GitHub only seems to allow image attachments. The example code is here: http://pastebin.com/F3GT39bY

pjekel commented 11 years ago

The "too much recursion" issue is specific to Firefox and has not been fixed yet, see bug reports:

https://bugzilla.mozilla.org/show_bug.cgi?id=794427 https://bugzilla.mozilla.org/show_bug.cgi?id=832580

There are four work-arounds:

1 - Use Chrome, Safari or IE 2 - Assign every object a "checked" property as in:

{"name":"i128", "type":"continent", "checked":true}

2 - Set the model property "checkedAll" to false. 3 - Start using the new store cbtree stores and models available with the cbtree-v0.9.3 release.

The upcoming cbtree v0.9.3 release can be found at https://github.com/pjekel/cbtree/tree/dojo-1.9