Is there anyway to combine these two functions into one?
When I end up putting a dozen lines inside each of the functions, and I want them to do the same thing, it there a way to write something like this?Code:lineObj.onRelease = function() { stopDrag(); }; lineObj.onReleaseOutside = function() { stopDrag(); };
thanksCode:// this obviously does not work (lineObj.onRelease, lineObj.onReleaseOutside) = function() { stopDrag(); };
-- mm