Add some code docs for Rivets.Binding#publish.
Showing
1 changed file
with
1 additions
and
0 deletions
... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment