This isn't very useful without some context....
...but of course the stack shows the original call. Ok. I will take a look.
i cant reproduce in my unit tests. perhaps you could post a test case?
--
You received this message because you are subscribed to the Google Groups "jsPlumb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jsplumb+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
If you’re not using jsPlumb.remove, which you should do when you want to remove an element from the DOM and have it cleaned up, then yes, jQuery-based versions of jsPlumb would not have thrown the error, as jQuery’s selector stuff glosses over the case that you try to perform an operation on an empty set. Well perhaps “glosses over” is unfair, because in most cases it’s very useful. Either way, it doesn’t crash.
In this case you’ve removed the element from the DOM and then subsequently asked jsPlumb to unregister a bunch of event listeners from it (that’s what unmakeSource does, basically). Since it doesn’t exist anymore, and Mottle - the new library I’m using for events - doesn’t expect null as an argument, you see this error.
I will update Mottle to gracefully handle null input. But I’d recommend to you to switch to using jsPlumb.remove anyway.
--
I've updated the beta versions of 1.6.0. Grab the latest...
I've updated the beta versions of 1.6.0. Grab the latest...
--
You might have to put together a fiddle then.
You might have to put together a fiddle then.
--
No problem.
No problem.
--