1XA.component.search.parameters = (function ($, document) { 2 3 var api = {}, 4 queryModel, 5 searchResultModels, 6 initialized = false, 7 defaults = {}; 8 9 10 api.init = function() { 11 if ($("body").hasClass("on-page-editor") || initialized) { 12 return; 13 } 14 15 queryModel = XA.component.search.query; 16 searchResultModels = XA.component.search.results.searchResultModels; 17 initialized = true; 18 }; 19 20 api.registerDefault = function(hash){ 21 _.each(hash, function(item, key) { 22 defaults[key] = hash[key].toString(); 23 }); 24 }; 25 26 api.updateHash = function (newHash) { 27 _.each(newHash, function(item, key){ 28 if (defaults[key] === newHash[key].toString()) { 29 newHash[key] = ""; 30 } 31 }); 32 33 queryModel.updateHash(newHash); 34 } 35 36 return api; 37 38}(jQuery, document)); 39 40XA.register('searchParameters', XA.component.search.parameters);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.