fossasia/loklak_webclient

View on GitHub
iframely/lib/loader/utils.js

Summary

Maintainability
A
0 mins
Test Coverage
(function(utils) {

    // TODO: not used anywhere.
    utils.DEFAULT_PARAMS = [
        "url",
        "urlMatch",
        "cb",
        "options",
        "request",
        "whitelistRecord",
        "__readabilityEnabled"
    ];

    utils.POST_PLUGIN_DEFAULT_PARAMS = [
        "link",
        "pluginContext",
        "pluginId"
    ];

    utils.PLUGIN_FIELDS_TYPE_DICT = {
        "getLink": Function,
        "getLinks": Function,
        "getData": Function,
        "prepareLink": Function,
        "mixins": Array
    };

    utils.PLUGIN_METHODS = [
        "getLink",
        "getLinks",
        "getData",
        "getMeta",
        "prepareLink"
    ];

    utils.PLUGIN_FIELDS = utils.PLUGIN_METHODS.concat([
        "mixins"
    ]);

})(exports);