INNER CODE UNIT · JavaScript

handleResponse

microsoft/azuredevopslabs · js/jekyll-search.js:29

            function handleResponse(xhr, callback) {
                xhr.onreadystatechange = function() {
                    if (receivedResponse(xhr)) try {
                        callback(null, JSON.parse(xhr.responseText))
                    } catch (err) {
                        callback(err, null)
                    }
                }
            }
            var self = this;
            self.load = function(location, callback) {
                var xhr = window.XMLHttpRequest ? new XMLHttpRequest : new ActiveXObject("Microsoft.XMLHTTP");
                xhr.open("GET", location, !0), handleResponse(xhr, callback), xhr.send()
            }
        }
    }, {}],
    2: [function(require, module) {
        function FuzzySearchStrategy() {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…