Home

function: exports


exports(url: string, loc: object): string

Sets the crossOrigin property for this resource based on if the url
for this resource is cross-origin. If crossOrigin was manually set, this
function does nothing.
Nipped from the resource loader!

Params:

Name Type Attribute Description
url

The url to test.

loc

The location object to test against.

Returns:

string

  {
    "comment": "/**\n * Sets the `crossOrigin` property for this resource based on if the url\n * for this resource is cross-origin. If crossOrigin was manually set, this\n * function does nothing.\n * Nipped from the resource loader!\n *\n * @ignore\n * @param {string} url - The url to test.\n * @param {object} [loc=window.location] - The location object to test against.\n * @return {string} The crossOrigin value to use (or empty string for none).\n */",
    "meta": {
        "range": [
            474,
            1356
        ],
        "filename": "determineCrossOrigin.js",
        "lineno": 16,
        "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\pixi.js\\pixi.js-repo\\src\\core\\utils",
        "code": {
            "id": "astnode100047088",
            "name": "module.exports",
            "type": "FunctionDeclaration",
            "paramnames": [
                "url",
                "loc"
            ]
        }
    },
    "description": "

Sets the crossOrigin property for this resource based on if the url
for this resource is cross-origin. If crossOrigin was manually set, this
function does nothing.
Nipped from the resource loader!

", "ignore": true, "params": [ { "type": { "names": [ "string" ] }, "description": "

The url to test.

", "name": "url" }, { "type": { "names": [ "object" ] }, "optional": true, "defaultvalue": "window.location", "description": "

The location object to test against.

", "name": "loc" } ], "returns": [ { "type": { "names": [ "string" ] }, "description": "

The crossOrigin value to use (or empty string for none).

" } ], "name": "exports", "longname": "module.exports", "kind": "function", "memberof": "module", "scope": "static", "___id": "T000002R004328", "___s": true, "filepath": "core\\utils\\determineCrossOrigin.js" }