Closed nathggns closed 10 years ago
@MrRio What do you think?
@nathggns Nice, does the 'order' argument need to be passed in for the new syntax
Ah yes, sorry I forgot to include that. I'll implement this now then.
This will only affect events on the DragAndDropTable
class, and not the events on the DDTElement
class and its subclasses. We will still use an emitter property for those. However, it will still be nice to remove the ddt.
prefix from those events. That means the following events need to be rename.
ddt.position => position
Currently we listen to events like this
This is the syntax that I think would work better
This would mean that
DragAndDropTable
would have to inherit fromeventEmitter
(which is fine, TypeScript should take care of that for us). We'd also have to drop the 'ddt.' prefix from our events, and rename the following events.