Ticket #7052 (closed defect: fixed)
dijit.Tooltip fails in multiple dojo page
| Reported by: | Ryan Smith | Owned by: | jburke |
|---|---|---|---|
| Priority: | high | Milestone: | 1.2 |
| Component: | General | Version: | 1.1.1 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
We have moved to Dojo 1.1.1 and are using the new scopeMap to support multiple dojos in the page, as described here:
Even after moving to a scoped dojo 1.1.1, using a second dojo with version 1.0.2 or 1.1.1 with the Tooltip still causes the same error.
The page loads, and the Tooltips work, but if we click anywhere we get an " 'undefined' is null or not an object.
The problem is the registering of events on the tooltip in the portlet dojo is impacting the scoped dojo's ie listeners
array indices. The scoped dojo._getIeDispatcher function has two handlers ( var h) registered, and the listeners array
(var ls) contains indices into the handlers. Without the portlet the ls [] = {1,0}. Add the portlet to the page, and
ls[i]={1.6};
Thus the call h[ls[i]] will call h[6], which is not defined because h has length 2.
I've attached a sample html test case to reproduce the problem. I didn't include the two dojos due to file size, but I can if requested. They are just the built versions from the community source project.