bcward79

Dojo DND breaks in JSAPI 1.6 & 2.0

Discussion created by bcward79 on Mar 31, 2010
Latest reply on Aug 5, 2010 by pon_esri
This is dual posted over on the regular JSAPI resource forum because it applies to both 1.6 and 2.0. (http://forums.esri.com/Thread.asp?c=158&f=2396&t=303979)

We have a site that uses Dojo's DND for reordering layers on the map. This worked fine with JSAPI 1.5 and previous versions, but completely breaks in JSAPI 1.6 and 2.0 (tested in FireFox 3.6.x and Chrome). I suspect this is a bug in the Dojo custom build for the JSAPI.

The attached code sample uses only Dojo DND capabilities, and breaks when using v1.6 and 2.0, but works correctly using Dojo 1.4.1 imported directly from AOL. Just change the location of the Dojo import to test this. Make sure to have firebug enabled when you test this. Simply attempt to drag one of the items in the list to a different location to test.

The break according to firebug is:
_4.mouseButtons.isLeft is not a function

Does anyone have a workaround for this?

Attachments

Outcomes