[dojo-contributors] Proper way to cancel a 0.9 DnD event

Eugene Lazutkin eugene at lazutkin.com
Thu Aug 16 13:01:00 EDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yes, please send it to me directly as an attachment.

Thanks,

Eugene

Jeff Chimene wrote:
> Eugene Lazutkin wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Jeff Chimene wrote:
>>   
>>> Hi,
>>>
>>> What's the proper way to cancel a DnD event?
>>>     
>> You need to do 2 things (assuming you use the trunk):
>>
>> 1) Be nice and notify everybody that the drag is canceled:
>>
>> dojo.publish("/dnd/cancel");
>>
>> 2) Stop the drag:
>>
>> dojo.dnd.manager().stopDrag();
>>   
> 
> Hi Eugene,
> 
> OK, I got this far... However, selecting another item from the source 
> container, yields the error "this.avatar has no properties". In 
> addition, the original item is still selected.
> 
> Suggestions welcome...
> 
> I can post the current code if that would help...
> 
> Cheers,
> jec

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGxIH9Y214tZwSfCsRAhvcAJ9PJno2GdLXX8+gmQKKr8mfaoSD2wCdHPCs
4JFklAsMsdp5Ov/x7ch+04s=
=XHHh
-----END PGP SIGNATURE-----



More information about the dojo-contributors mailing list