function junk = tpreset(h)
%TPRESET  PreSet function for target change

%   Author(s): A. DiVergilio
%   Copyright 1986-2000 The MathWorks, Inc. 
%   $Revision: 1.2 $  $Date: 2000/06/14 20:15:14 $

junk = []; %---Temporary fix

%---Delete selection highlighting
 delete(h.Line(ishandle(h.Line)));
 h.Line = [];

%---Delete Target listeners
 h.TargetUserDataListener = [];
 h.TargetDestroyedListener = [];
 h.BackgroundAxesDestroyedListener = [];
