bdcaa056 by Michael Richards

Add some code docs for Rivets.Binding#publish.

1 parent 87f558a9
...@@ -34,6 +34,7 @@ class Rivets.Binding ...@@ -34,6 +34,7 @@ class Rivets.Binding
34 if @type in bidirectionals 34 if @type in bidirectionals
35 @el.addEventListener 'change', @publish 35 @el.addEventListener 'change', @publish
36 36
37 # Publishes the value currently set on the input element back to the model.
37 publish: (e) => 38 publish: (e) =>
38 el = e.target or e.srcElement 39 el = e.target or e.srcElement
39 Rivets.config.adapter.publish @model, @keypath, getInputValue el 40 Rivets.config.adapter.publish @model, @keypath, getInputValue el
......