Loading template/app/controller/Search.js +9 −1 Original line number Diff line number Diff line Loading @@ -53,7 +53,15 @@ Ext.define('Docs.controller.Search', { this.loadRecord(record); } else { // Wait a bit before actually performing the search. // When user is typing fast, the value of el.value // might not right away be the final value. For example // user might type "tre" but we will get three keyup events // where el.value === "t". clearTimeout(this.searchTimeout); this.searchTimeout = Ext.Function.defer(function() { this.search(el.value); }, 50, this); } }, focus: function(el) { Loading Loading
template/app/controller/Search.js +9 −1 Original line number Diff line number Diff line Loading @@ -53,7 +53,15 @@ Ext.define('Docs.controller.Search', { this.loadRecord(record); } else { // Wait a bit before actually performing the search. // When user is typing fast, the value of el.value // might not right away be the final value. For example // user might type "tre" but we will get three keyup events // where el.value === "t". clearTimeout(this.searchTimeout); this.searchTimeout = Ext.Function.defer(function() { this.search(el.value); }, 50, this); } }, focus: function(el) { Loading