f5cbc93d by Adam Heath

Add bind/unbind calls into the render helper.

1 parent b47edc3e
......@@ -47,9 +47,11 @@ define([
};
$(el).on('focus', holder.focus).on('blur', holder.blur);
rivetsBinderCall(this, this.args[0], 'bind', arguments);
render(el, 'bind');
},
unbind: function(el) {
var holder = this.validationHolder;
render(el, 'unbind');
$(this.validationHolder.marker).after(el).remove();
$(el).off('focus', holder.focus).off('blur', holder.blur);
if (holder.observer.target) {
......