function Target()

in grafana/target.js [26:39]


function Target() {
    if (arguments.length === 0) {
        throw new Error('Incorrect invocation of Target. ' +
                        'Must provide at least one argument');
    }
    if (typeof arguments[0] === 'string') {
        // Format string
        this.source = util.format.apply(null, arguments);
    } else {
        // Another target
        this.source = arguments[0];
        this.func = arguments[1];
    }
}