MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / handleUpdate

Function handleUpdate

_book/gitbook/gitbook-plugin-search/search.js:114–123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

112
113 // Launch query based on input content
114 function handleUpdate() {
115 var q = $searchInput.val();
116
117 if (q.length == 0) {
118 closeSearch();
119 }
120 else {
121 launchSearch(q);
122 }
123 }
124
125 // Detect true content change in search input
126 // Workaround for IE < 9

Callers 1

bindSearchFunction · 0.85

Calls 2

closeSearchFunction · 0.85
launchSearchFunction · 0.85

Tested by

no test coverage detected