post-invocation modification to a draggable
i was bored tonight and decided to revamp some jquery-easydrag code
with jquery-ui's draggable. the thing i immediately noticed is that
jquery-ui doesnt seem to permit any way of modifying the draggable
behavior once an element has been .draggable()'d. for example, if i
specify .draggable( stop: myFunc ), i dont see any way of changing the
"stop property" to mySecondaryFunc at a latter point in time. jquery-
easydrag used to add a bunch of functions to objects which could be
used to modify their running behavior, for example the stop/drop
callback could be changed live with $
("#draggable").ondrop( mySecondaryFunc ) any time after the initial $
("#draggable").easydrag().
i dont know how ubiquitous this behavior is within jquery-ui (i've
just toyed with draggable and droppable a little), and i could well be
missing something, but this fire and forget behavioralism seems very
limited in scope. am i missing something, is there some way to modify
jquery-ui decorators (draggables) after they've been instantiated, or
is tearing it down and adding it again really the only means of
affecting change to jquery-ui elements?