Fix a bug for Shoes::Link. The Link elements were left after replacing (or clearing) the text values. Try out the following test snippet.

Shoes.app do
  button 'replace' do
    @msg.replace 'hi ' * 8, link('hi'){p 'hi'}
  end
  button 'clear' do
    @msg.remove
  end
  @msg = para link('hello shoes'){p 'hello shoes'}
end