dist/toolkit.js
function(element, block) {
        var selector = 'data-' + (block || this.keyName);

        if (element) {
            selector += '-' + element;
        }

        if (this.namespace) {
            selector += '="' + this.namespace + '"';
        }

        return '[' + selector + ']';
    }
function(element, block) {
        var selector = 'data-' + (block || this.keyName);

        if (element) {
            selector += '-' + element;
        }

        if (this.namespace) {
            selector += '="' + this.namespace + '"';
        }

        return '[' + selector + ']';
    }
function ( element , block ) { var selector = 'data-' + ( block || this . keyName ) ; if ( element ) { selector += '-' + element ; } if ( this . namespace ) { selector += '="' + this . namespace + '"' ; } return '[' + selector + ']' ; }
Generate a valid data attribute selector based on the current component name and namespace.

@param {String} [element]
@param {String} [block]
@returns {string}
Generate a valid data attribute selector based on the current component name and namespace .