[Dojo-interest] simple drag and drop in 0.9
eugene.lazutkin at gmail.com
Thu Apr 10 17:59:58 UTC 2008
Jeremy Quinn wrote:
> Then I subscribe to '/dnd/drop' *before* instantiating the
> dojo.dnd.Source, so I get called before the Source (otherwise the
> Source wipes out info about the drag before I get called).
> I do miss the before/after advice stuff.
Sounds convoluted. I plan to add aop back as a dojox project.
> Is there a standard way to disallow multiple selections?
Yes, pass "singular: true" as a constructor's parameter of your source.
>> Usually I dojo.connect() to methods, if I want to be notified of
>> events, I monkey-patch, if I need to override a method on a handful of
>> Sources, or even subclass, if I have a lot of similar sources. But of
>> course the first order of business is to consult the documentation to
>> see if there is an easier way to do what I want.
Live surgery on instances of objects (or classes):
More information about the Dojo-interest