src/LiveDevelopment/Agents/HighlightAgent.js
function domElement(ids) {
        var selector = "";
        if (!Array.isArray(ids)) {
            ids = [ids];
        }
        _.each(ids, function (id) {
            if (selector !== "") {
                selector += ",";
            }
            selector += "[data-brackets-id='" + id + "']";
        });
        rule(selector);
    }
function domElement(ids) {
        var selector = "";
        if (!Array.isArray(ids)) {
            ids = [ids];
        }
        _.each(ids, function (id) {
            if (selector !== "") {
                selector += ",";
            }
            selector += "[data-brackets-id='" + id + "']";
        });
        rule(selector);
    }
function domElement ( ids ) { var selector = "" ; if ( ! Array . isArray ( ids ) ) { ids = [ ids ] ; } _ . each ( ids , function ( id ) { if ( selector !== "" ) { selector += "," ; } selector += "[data-brackets-id='" + id + "']" ; } ) ; rule ( selector ) ; }
Highlight all nodes with 'data-brackets-id' value
that matches id, or if id is an array, matches any of the given ids.
@param {string|Array<string>} value of the 'data-brackets-id' to match,
or an array of such.
Highlight all nodes with data - brackets - id value that matches id or if id is an array matches any of the given ids .