demo/amd/rjs/output/unified/marionette-build.js
function _getEmbeddedElAttributes ( templateString ) {
        var elDataAttributes = {},

            elDefinitionMatch = rxElDefinitionComment.exec( templateString ),
            elDefinitionComment = elDefinitionMatch && elDefinitionMatch[0];

        if ( elDefinitionComment ) {
            _.each( rxRegisteredDataAttributes, function ( rxAttributeMatcher, attributeName ) {
                var match = rxAttributeMatcher.exec( elDefinitionComment ),
                    attributeValue = match && match[2];

                if ( attributeValue ) elDataAttributes[attributeName] = attributeValue;
            } );
        }

        return _.size( elDataAttributes ) ? elDataAttributes : undefined;
    }
function _getEmbeddedElAttributes ( templateString ) {
        var elDataAttributes = {},

            elDefinitionMatch = rxElDefinitionComment.exec( templateString ),
            elDefinitionComment = elDefinitionMatch && elDefinitionMatch[0];

        if ( elDefinitionComment ) {
            _.each( rxRegisteredDataAttributes, function ( rxAttributeMatcher, attributeName ) {
                var match = rxAttributeMatcher.exec( elDefinitionComment ),
                    attributeValue = match && match[2];

                if ( attributeValue ) elDataAttributes[attributeName] = attributeValue;
            } );
        }

        return _.size( elDataAttributes ) ? elDataAttributes : undefined;
    }
Takes a raw HTML/template string and looks for el-related data attributes which are contained in a comment.
Returns the attributes hash, or undefined if no attributes are found.

The keys in the hash are the data attribute names, ie they include the "data-" prefix.

@param   {string} templateString
@returns {Object|undefined}