f5cbc93d by Adam Heath

Add bind/unbind calls into the render helper.

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