87f558a9 by Michael Richards

Remove the unbind function from Rivets.Binding until there's a fix for unsubscribing.

1 parent 61c73853
...@@ -14,8 +14,6 @@ ...@@ -14,8 +14,6 @@
14 this.model = model; 14 this.model = model;
15 this.keypath = keypath; 15 this.keypath = keypath;
16 this.formatters = formatters != null ? formatters : []; 16 this.formatters = formatters != null ? formatters : [];
17 this.unbind = __bind(this.unbind, this);
18
19 this.publish = __bind(this.publish, this); 17 this.publish = __bind(this.publish, this);
20 18
21 this.bind = __bind(this.bind, this); 19 this.bind = __bind(this.bind, this);
...@@ -52,14 +50,6 @@ ...@@ -52,14 +50,6 @@
52 return Rivets.config.adapter.publish(this.model, this.keypath, getInputValue(el)); 50 return Rivets.config.adapter.publish(this.model, this.keypath, getInputValue(el));
53 }; 51 };
54 52
55 Binding.prototype.unbind = function() {
56 var _ref;
57 Rivets.config.adapter.unsubscribe(this.model, this.keypath, this.set);
58 if (_ref = this.type, __indexOf.call(bidirectionals, _ref) >= 0) {
59 return this.el.removeEventListener('change', this.publish);
60 }
61 };
62
63 return Binding; 53 return Binding;
64 54
65 })(); 55 })();
......
...@@ -38,13 +38,6 @@ class Rivets.Binding ...@@ -38,13 +38,6 @@ class Rivets.Binding
38 el = e.target or e.srcElement 38 el = e.target or e.srcElement
39 Rivets.config.adapter.publish @model, @keypath, getInputValue el 39 Rivets.config.adapter.publish @model, @keypath, getInputValue el
40 40
41 # Unsubscribes from the model and the element
42 unbind: =>
43 Rivets.config.adapter.unsubscribe @model, @keypath, @set
44
45 if @type in bidirectionals
46 @el.removeEventListener 'change', @publish
47
48 # A collection of bindings for a parent element. 41 # A collection of bindings for a parent element.
49 class Rivets.View 42 class Rivets.View
50 # The parent DOM element and the model objects for binding are passed into the 43 # The parent DOM element and the model objects for binding are passed into the
......