When using dojo.dnd with avatars, dojo automatically creates a span containing the number of nodes in the avatar to make sure, there is something shown while dragging.
From the source of dojo.dnd.avatar:
(..)
span = dojo.create("span", innerHTML: source.generateText ? this._generateText() : ""
(..)
_generateText: function(){
// summary: generates a proper text to reflect copying or moving of items
return this.manager.nodes.length.toString();
}
When I set dojo.dnd.source.generateText (in the source object) to false, the text is still generated (a 1 above the avatar).
Am I setting the property on the wrong object? Or is it a bug?
Live demo of my test case here: visualsuite.ch/grid