What steps will reproduce the problem?
1. I am using ASP.NET MVC 4 Razor syntax project with VS 2010 and adding the
ArcGIS JS API into a view. Then adding the TOC.
2. In Chrome, the table of contents appear, but when I click to collapse the
TOC, nothing happens and I get the error stating "Uncaught TypeError: Object
#<Object> has no method 'getEnclosingWidget' - TOC.js:506".
What is the expected output? What do you see instead?
The TOC collapses and expands when clicking on the "+" or "-". Instead nothing
happens and I get the error.
What version of the product are you using? On what operating system?
2.09
Please provide any additional information below.
I have resolved the issue by modifying the code base for the TOC.js with the
following.
add "dijit/registry" in the require statement, add registry into the function
call and change the line 506 from
"if (t == this.checkNode || dijit.getEnclosingWidget(t) == this.checkNode) {"
to
"if (t == this.checkNode || registry.getEnclosingWidget(t) == this.checkNode) {"
Now it works as expected. I have attached the updated source that works.
Original issue reported on code.google.com by gref...@gmail.com on 23 Oct 2013 at 4:58
Original issue reported on code.google.com by
gref...@gmail.com
on 23 Oct 2013 at 4:58Attachments: