src/aria/templates/TemplateCtxt.js
function (baseId) {
            baseId = this._id + "_" + baseId.replace(/\+/g, "");

            // Calculate and return the new id
            var prefixIds = this._prefixIds;
            var id = prefixIds[baseId] = (prefixIds[baseId] || 0) + 1;
            return baseId + "_auto_" + id;
        }
function (baseId) {
            baseId = this._id + "_" + baseId.replace(/\+/g, "");

            // Calculate and return the new id
            var prefixIds = this._prefixIds;
            var id = prefixIds[baseId] = (prefixIds[baseId] || 0) + 1;
            return baseId + "_auto_" + id;
        }
function ( baseId ) { baseId = this . _id + "_" + baseId . replace ( / \+ / g , "" ) ; // Calculate and return the new id var prefixIds = this . _prefixIds ; var id = prefixIds [ baseId ] = ( prefixIds [ baseId ] || 0 ) + 1 ; return baseId + "_auto_" + id ; }
Generate an automatic id computed from a base id, with an incremental counter
@param {String} baseId specified in the template
@return {String} The global id to be used in the dom
Generate an automatic id computed from a base id with an incremental counter