7525637ab97beb0c4bef85bf66ab0af17e0fb94c kate Mon May 19 13:04:50 2014 -0700 Removing jshint comment diff --git src/hg/js/autocomplete.js src/hg/js/autocomplete.js index 78bb2a6..3d9da30 100644 --- src/hg/js/autocomplete.js +++ src/hg/js/autocomplete.js @@ -1,25 +1,23 @@ // support stuff for auto-complete using jQuery UI's autocomplete widget // // requires ajax.js // requires utils.js /* suggest (aka gene search) Requires three elements on page: positionDisplay (static display), positionInput (input textbox) and position (hidden). */ -/* jshint */ - var suggestBox = { ajaxGet: function ajaxGet(db) { // Returns autocomplete source function // db is the relevant assembly (e.g. "hg18") var cache = {}; // cache is is used as a hash to cache responses from the server. return function(request, callback) { var key = request.term; if (!cache[key]) { $.ajax({ url: "../cgi-bin/hgSuggest", data: "db=" + db + "&prefix=" + encodeURIComponent(key), // dataType: "json", // XXXX this doesn't work under IE, so we retrieve as text and do an eval to force to an object. trueSuccess: function(response, status) { // We get a lot of duplicate requests (especially the first letters of words), // so we keep a cache of the suggestions lists we've retreived.