bug fix, cancel button can have html elements as children:
<a href="#" class="button cancel ink-dismiss"><i class="icon-remove"></i><span>Cancel</span></a>