/** * @license template 0.0.1 Copyright jQuery Foundation and other contributors. * Released under MIT license, http://github.com/requirejs/element/LICENSE */ /*jshint browser: true, strict: false */ /*globals define, requirejs */ define(function(require, exports, module) { var template, fetchText, isReady = false, readyQueue = [], tagRegExp = /<(\w+-[\w-]+)(\s|>)/g, commentRegExp = //g, attrIdRegExp = /\s(hrefid|srcid)="([^"]+)"/g, buildProtocol = 'build:', moduleConfig = module.config(), depPrefix = 'element!', buildMap = {}, tagToId = function(tag) { return tag; }; // Referencing element module to make sure // document.register shim is in place. Over time, // as browsers implement it, this require call // can be removed. require('element'); if (moduleConfig.hasOwnProperty('depPrefix')) { depPrefix = moduleConfig.depPrefix; } if (moduleConfig.hasOwnProperty('tagToId')) { tagToId = moduleConfig.tagToId; } /** * Handles converting