| @@ -330,4 +330,6 @@ is a string containing the text inside the element. | |||
| Update `.getValue()` to | |||
| 1. Return the number of characters the user has typed | |||
| 1. Return the number of characters the user has typed (`r github_sha_link("b3958d5e3f60fbac3a0100673696bd413a276fb4")`) | |||
| 1. Return the number of words the user has entered | |||
| @@ -16,7 +16,7 @@ $.extend(typingSpeed, { | |||
| // your input. In this function, find or construct the value that will be | |||
| // returned to Shiny. The ID of `el` is used for the inputId. | |||
| return el.value.length; | |||
| return el.value.split(' ').length; | |||
| }, | |||
| setValue: function(el, value) { | |||
| // This method is used for restoring the bookmarked state of your input | |||