MCPcopy
hub / github.com/jsfiddle/togetherjs / submitChat

Function submitChat

togetherjs/ui.js:232–240  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

230 });
231
232 function submitChat() {
233 var val = input.val();
234 if ($.trim(val)) {
235 input.val("");
236 // triggering the event manually to avoid the addition of newline character to the textarea:
237 input.trigger("input").trigger("propertychange");
238 chat.submit(val);
239 }
240 }
241 // auto-resize textarea:
242 input.on("input propertychange", function () {
243 var $this = $(this);

Callers 1

ui.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected