Added support for data-method and data-confirm.