function aObj = enddrag(aObj)
%AXISCHILD/ENDDRAG

%   Copyright (c) 1984-98 by The MathWorks, Inc.
%   $Revision: 1.8 $  $Date: 1998/08/24 18:11:24 $

savedState = get(aObj, 'SavedState');

myH = get(aObj,'MyHandle');
set(myH,'EraseMode',savedState.EraseMode);

if get(aObj,'AutoDragConstraint')
   aObj = set(aObj,'OldDragConstraint','restore');
end
suffix = get(aObj,'Suffix');
if ~isempty(suffix)
   feval(suffix{1},myH,suffix{2:end});
end


