INNER CODE UNIT · JavaScript

initWithJSON

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

                function initWithJSON() {
                    store.put(opt.dataSource), registerInput()
                }

                function initWithURL(url) {
                    jsonLoader.load(url, function(err, json) {
                        err ? throwError("failed to get JSON (" + url + ")") : (store.put(json), registerInput())
                    })
                }

                function throwError(message) {
                    throw new Error("SimpleJekyllSearch --- " + message)
                }

                function validateOptions(_opt) {
                    for (var i = 0; i < requiredOptions.length; i++) {
                        var req = requiredOptions[i];
                        _opt[req] || throwError("You must specify a " + req)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…