Comparing version 0.13.34 to 0.14.0
@@ -1,5 +0,2 @@ | ||
define('htmlbars-test-helpers', ['exports', '../simple-html-tokenizer', '../htmlbars-util/array-utils'], function (exports, simple_html_tokenizer, array_utils) { | ||
'use strict'; | ||
define("htmlbars-test-helpers", ["exports", "../simple-html-tokenizer", "../htmlbars-util/array-utils"], function (exports, _simpleHtmlTokenizer, _htmlbarsUtilArrayUtils) { | ||
exports.equalInnerHTML = equalInnerHTML; | ||
@@ -42,4 +39,5 @@ exports.equalHTML = equalHTML; | ||
return { tokens: simple_html_tokenizer.tokenize(div.innerHTML), html: div.innerHTML }; | ||
return { tokens: _simpleHtmlTokenizer.tokenize(div.innerHTML), html: div.innerHTML }; | ||
} | ||
function equalTokens(fragment, html, message) { | ||
@@ -70,4 +68,4 @@ if (fragment.fragment) { | ||
array_utils.forEach(fragTokens.tokens, normalizeTokens); | ||
array_utils.forEach(htmlTokens.tokens, normalizeTokens); | ||
_htmlbarsUtilArrayUtils.forEach(fragTokens.tokens, normalizeTokens); | ||
_htmlbarsUtilArrayUtils.forEach(htmlTokens.tokens, normalizeTokens); | ||
@@ -94,2 +92,3 @@ var msg = "Expected: " + html + "; Actual: " + fragTokens.html; | ||
})(); | ||
function normalizeInnerHTML(actualHTML) { | ||
@@ -113,2 +112,3 @@ if (ieSVGInnerHTML) { | ||
var checkedInputString = checkedInput.outerHTML; | ||
function isCheckedInputHTML(element) { | ||
@@ -120,2 +120,3 @@ equal(element.outerHTML, checkedInputString); | ||
var textProperty = document.createElement("div").textContent === undefined ? "innerText" : "textContent"; | ||
function getTextContent(el) { | ||
@@ -129,3 +130,3 @@ // textNode | ||
} | ||
}); | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXRlc3QtaGVscGVycy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO1VBR2dCLGNBQWMsR0FBZCxjQUFjO1VBS2QsU0FBUyxHQU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0U3RyaW5nID0gY2hlY2tlZElucHV0Lm91dGVySFRNTDtcbmV4cG9ydCBmdW5jdGlvbiBpc0NoZWNrZWRJbnB1dEhUTUwoZWxlbWVudCkge1xuICBlcXVhbChlbGVtZW50Lm91dGVySFRNTCwgY2hlY2tlZElucHV0U3RyaW5nKTtcbn1cblxuLy8gY2hlY2sgd2hpY2ggcHJvcGVydHkgaGFzIHRoZSBub2RlJ3MgdGV4dCBjb250ZW50XG52YXIgdGV4dFByb3BlcnR5ID0gZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgnZGl2JykudGV4dENvbnRlbnQgPT09IHVuZGVmaW5lZCA/ICdpbm5lclRleHQnIDogJ3RleHRDb250ZW50JztcbmV4cG9ydCBmdW5jdGlvbiBnZXRUZXh0Q29udGVudChlbCkge1xuICAvLyB0ZXh0Tm9kZVxuICBpZiAoZWwubm9kZVR5cGUgPT09IDMpIHtcbiAgICByZXR1cm4gZWwubm9kZVZhbHVlO1xuICB9IGVsc2Uge1xuICAgIHJldHVybiBlbFt0ZXh0UHJvcGVydHldO1xuICB9XG59XG4iXX0= |
@@ -1,19 +0,11 @@ | ||
define('htmlbars-util', ['exports', './htmlbars-util/safe-string', './htmlbars-util/handlebars/utils', './htmlbars-util/namespaces', './htmlbars-util/morph-utils'], function (exports, SafeString, utils, namespaces, morph_utils) { | ||
'use strict'; | ||
exports.SafeString = SafeString['default']; | ||
exports.escapeExpression = utils.escapeExpression; | ||
exports.getAttrNamespace = namespaces.getAttrNamespace; | ||
exports.validateChildMorphs = morph_utils.validateChildMorphs; | ||
exports.linkParams = morph_utils.linkParams; | ||
exports.dump = morph_utils.dump; | ||
define('htmlbars-util', ['exports', './htmlbars-util/safe-string', './htmlbars-util/handlebars/utils', './htmlbars-util/namespaces', './htmlbars-util/morph-utils'], function (exports, _htmlbarsUtilSafeString, _htmlbarsUtilHandlebarsUtils, _htmlbarsUtilNamespaces, _htmlbarsUtilMorphUtils) { | ||
exports.SafeString = _htmlbarsUtilSafeString.default; | ||
exports.escapeExpression = _htmlbarsUtilHandlebarsUtils.escapeExpression; | ||
exports.getAttrNamespace = _htmlbarsUtilNamespaces.getAttrNamespace; | ||
exports.validateChildMorphs = _htmlbarsUtilMorphUtils.validateChildMorphs; | ||
exports.linkParams = _htmlbarsUtilMorphUtils.linkParams; | ||
exports.dump = _htmlbarsUtilMorphUtils.dump; | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXV0aWwuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtVQU1FLFVBQVU7VUFDVixnQkFBZ0IsZ0NBTlQsZ0JBQWdCO1VBT3ZCLGdCQUFnQiwyQkFOVCxnQkFBZ0I7VUFPdkIsbUJBQW1CLDJCQU5aLG1CQUFtQjtVQU8xQixVQUFVLDJCQVBrQixVQUFVO1VBUXRDLElBQUksMkJBUm9DLElBQUkiLCJmaWxlIjoiaHRtbGJhcnMtdXRpbC5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBTYWZlU3RyaW5nIGZyb20gJy4vaHRtbGJhcnMtdXRpbC9zYWZlLXN0cmluZyc7XG5pbXBvcnQgeyBlc2NhcGVFeHByZXNzaW9uIH0gZnJvbSAnLi9odG1sYmFycy11dGlsL2hhbmRsZWJhcnMvdXRpbHMnO1xuaW1wb3J0IHsgZ2V0QXR0ck5hbWVzcGFjZSB9IGZyb20gJy4vaHRtbGJhcnMtdXRpbC9uYW1lc3BhY2VzJztcbmltcG9ydCB7IHZhbGlkYXRlQ2hpbGRNb3JwaHMsIGxpbmtQYXJhbXMsIGR1bXAgfSBmcm9tICcuL2h0bWxiYXJzLXV0aWwvbW9ycGgtdXRpbHMnO1xuXG5leHBvcnQge1xuICBTYWZlU3RyaW5nLFxuICBlc2NhcGVFeHByZXNzaW9uLFxuICBnZXRBdHRyTmFtZXNwYWNlLFxuICB2YWxpZGF0ZUNoaWxkTW9ycGhzLFxuICBsaW5rUGFyYW1zLFxuICBkdW1wXG59O1xuIl19 | ||
define('htmlbars-util/array-utils', ['exports'], function (exports) { | ||
'use strict'; | ||
exports.forEach = forEach; | ||
@@ -71,12 +63,8 @@ exports.map = map; | ||
exports.isArray = isArray; | ||
var indexOfArray = getIdx; | ||
exports.isArray = isArray; | ||
exports.indexOfArray = indexOfArray; | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXV0aWwvYXJyYXktdXRpbHMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtVQUFnQixPQUFPLEdBQVAsT0FBTztVQWFQLEdBQUcsR0FBSCxHQUFHOztBQWJaLFdBQVMsT0FBTyxDQUFDLEtBQUssRUFBRSxRQUFRLEVBQUUsT0FBTyxFQUFFO0FBQ2hELFFBQUksQ0FBQyxFQUFFLENBQUMsQ0FBQztBQUNULFFBQUksT0FBTyxLQUFLLFNBQVMsRUFBRTtBQUN6QixXQUFLLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxHQUFHLEtBQUssQ0FBQyxNQUFNLEVBQUUsQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEVBQUUsRUFBRTtBQUN4QyxnQkFBUSxDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDLEVBQUUsS0FBSyxDQUFDLENBQUM7T0FDOUI7S0FDRixNQUFNO0FBQ0wsV0FBSyxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUMsR0FBRyxLQUFLLENBQUMsTUFBTSxFQUFFLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxFQUFFLEVBQUU7QUFDeEMsZ0JBQVEsQ0FBQyxJQUFJLENBQUMsT0FBTyxFQUFFLEtBQUssQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDLEVBQUUsS0FBSyxDQUFDLENBQUM7T0FDNUM7S0FDRjtHQUNGOztBQUVNLFdBQVMsR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keDtcbiJdfQ== | ||
define('htmlbars-util/handlebars/safe-string', ['exports'], function (exports) { | ||
'use strict'; | ||
// Build out our basic SafeString type | ||
@@ -91,9 +79,6 @@ function SafeString(string) { | ||
exports['default'] = SafeString; | ||
exports.default = SafeString; | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXV0aWwvaGFuZGxlYmFycy9zYWZlLXN0cmluZy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUNBLFdBQVMsVUFBVSxDQUFDLE1BQU0sRUFBRTtBQUMxQixRQUFJLENBQUMsTUFBTSxHQUFHLE1BQU0sQ0FBQztHQUN0Qjs7QUFFRCxZQUFVLENBQUMsU0FBUyxDQUFDLFFBQVEsR0FBRyxVQUFVLENBQUMsU0FBUyxDQUFDLE1BQU0sR0FBRyxZQUFXO0FBQ3ZFLFdBQU8sRUFBRSxHQUFHLElBQUksQ0FBQyxNQUFNLENBQUM7R0FDekIsQ0FBQzs7b0JBRWEsVUFBVSIsImZpbGUiOiJodG1sYmFycy11dGlsL2hhbmRsZWJhcnMvc2FmZS1zdHJpbmcuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBCdWlsZCBvdXQgb3VyIGJhc2ljIFNhZmVTdHJpbmcgdHlwZVxuZnVuY3Rpb24gU2FmZVN0cmluZyhzdHJpbmcpIHtcbiAgdGhpcy5zdHJpbmcgPSBzdHJpbmc7XG59XG5cblNhZmVTdHJpbmcucHJvdG90eXBlLnRvU3RyaW5nID0gU2FmZVN0cmluZy5wcm90b3R5cGUudG9IVE1MID0gZnVuY3Rpb24oKSB7XG4gIHJldHVybiAnJyArIHRoaXMuc3RyaW5nO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgU2FmZVN0cmluZztcbiJdfQ== | ||
define('htmlbars-util/handlebars/utils', ['exports'], function (exports) { | ||
'use strict'; | ||
exports.extend = extend; | ||
@@ -105,3 +90,2 @@ exports.indexOf = indexOf; | ||
exports.appendContextPath = appendContextPath; | ||
var escape = { | ||
@@ -122,2 +106,3 @@ '&': '&', | ||
} | ||
function extend(obj /* , ...source */) { | ||
@@ -137,2 +122,6 @@ for (var i = 1; i < arguments.length; i++) { | ||
exports.toString = toString; | ||
// Sourced from lodash | ||
// https://github.com/bestiejs/lodash/blob/master/LICENSE.txt | ||
/*eslint-disable func-style, no-var */ | ||
var isFunction = function (value) { | ||
@@ -144,3 +133,3 @@ return typeof value === 'function'; | ||
if (isFunction(/x/)) { | ||
isFunction = function (value) { | ||
exports.isFunction = isFunction = function (value) { | ||
return typeof value === 'function' && toString.call(value) === '[object Function]'; | ||
@@ -150,2 +139,6 @@ }; | ||
var isFunction; | ||
exports.isFunction = isFunction; | ||
/*eslint-enable func-style, no-var */ | ||
/* istanbul ignore next */ | ||
var isArray = Array.isArray || function (value) { | ||
@@ -155,2 +148,5 @@ return value && typeof value === 'object' ? toString.call(value) === '[object Array]' : false; | ||
exports.isArray = isArray; | ||
// Older IE versions do not directly support indexOf so we must implement our own, sadly. | ||
function indexOf(array, value) { | ||
@@ -206,12 +202,5 @@ for (var i = 0, len = array.length; i < len; i++) { | ||
} | ||
exports.toString = toString; | ||
exports.isFunction = isFunction; | ||
exports.isArray = isArray; | ||
}); | ||
define('htmlbars-util/morph-utils', ['exports'], function (exports) { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXV0aWwvaGFuZGxlYmFycy91dGlscy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO1VBZ0JnQixNQUFNLEdBQU4sTUFBTTtVQW9DTixPQUFPLEdBQVAsT0FBTztVQVVQLGdCQUFnQixHQUFoQixnQkFBZ0I7VUFxQmhCLE9BQU8sR0FBUCxPQUFPO1VBVVAsV0FBVyxHQUFYLFdBQVc7VUFLWCxpQkFBaUIsR0FBakIsaUJBQWlCO0FBbEdqQ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tcbiAgfSBlbHNlIGlmIChpc0FycmF5KHZhbHVlKSAmJiB2YWx1ZS5sZW5ndGggPT09IDApIHtcbiAgICByZXR1cm4gdHJ1ZTtcbiAgfSBlbHNlIHtcbiAgICByZXR1cm4gZmFsc2U7XG4gIH1cbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGJsb2NrUGFyYW1zKHBhcmFtcywgaWRzKSB7XG4gIHBhcmFtcy5wYXRoID0gaWRzO1xuICByZXR1cm4gcGFyYW1zO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gYXBwZW5kQ29udGV4dFBhdGgoY29udGV4dFBhdGgsIGlkKSB7XG4gIHJldHVybiAoY29udGV4dFBhdGggPyBjb250ZXh0UGF0aCArICcuJyA6ICcnKSArIGlkO1xufVxuIl19 | ||
define("htmlbars-util/morph-utils", ["exports"], function (exports) { | ||
exports.visitChildren = visitChildren; | ||
@@ -221,2 +210,3 @@ exports.validateChildMorphs = validateChildMorphs; | ||
exports.dump = dump; | ||
/*globals console*/ | ||
@@ -303,10 +293,7 @@ function visitChildren(nodes, callback) { | ||
} | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXV0aWwvbW9ycGgtdXRpbHMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtVQUVnQixhQUFhLEdBQWIsYUFBYTtVQXdCYixtQkFBbUIsR0FBbkIsbUJBQW1CO1VBb0JuQixVQUFVLEdBQVYsVUFBVTtVQVVWLElBQUksR0FBSixJQUFJOzs7QUF0RGIsV0FBUyxhQUFhLENBQUMsS0FBSyxFQUFFLFFBQVEsRUFBRTtBQUM3QyxRQUFJLENBQUMsS0FBSyxJQUFJLEtBQUssQ0FBQyxNQUFNLEtBQUssQ0FBQyxFQUFFO0FBQUUsYUFBTztLQUFFOztBQUU3QyxTQUFLLEdBQUcsS0FBSyxDQUFDLEtBQUssRUFBRSxDQUFDOztBQUV0QixXQUFPLEtB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g7XG4gICAgfVxuICB9IGVsc2UgaWYgKG5vZGUubW9ycGhMaXN0KSB7XG4gICAgZHVtcChub2RlLm1vcnBoTGlzdCk7XG4gIH1cblxuICBjb25zb2xlLmdyb3VwRW5kKCk7XG59XG5cbmZ1bmN0aW9uIG1hcChub2RlcywgY2IpIHtcbiAgZm9yICh2YXIgaT0wLCBsPW5vZGVzLmxlbmd0aDsgaTxsOyBpKyspIHtcbiAgICBjYihub2Rlc1tpXSk7XG4gIH1cbn1cbiJdfQ== | ||
define('htmlbars-util/namespaces', ['exports'], function (exports) { | ||
'use strict'; | ||
exports.getAttrNamespace = getAttrNamespace; | ||
// ref http://dev.w3.org/html5/spec-LC/namespaces.html | ||
var defaultNamespaces = { | ||
@@ -319,2 +306,3 @@ html: 'http://www.w3.org/1999/xhtml', | ||
}; | ||
function getAttrNamespace(attrName) { | ||
@@ -331,8 +319,5 @@ var namespace; | ||
} | ||
}); | ||
define('htmlbars-util/object-utils', ['exports'], function (exports) { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXV0aWwvbmFtZXNwYWNlcy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO1VBU2dCLGdCQUFnQixHQUFoQixnQkFBZ0I7O0FBUmhDLE1BQUksaUJBQWlCLEdBQUc7QUFDdEIsUUFBSSxFQUFFLDhCQUE4QjtBQUNwQyxVQUFNLEVBQUUsb0NBQW9DO0FBQzVDLE9BQUcsRUFBRSw0QkFBNEI7QUFDakMsU0FBSyxFQUFFLDhCQUE4QjtBQUNyQyxPQUFHLEVBQUUsc0NBQXNDO0dBQzVDLENBQUM7O0FBRUssV0FBUyxnQkFBZ0IsQ0FBQyxRQUFRLEVBQUU7QUFDekMsUUFBSSxTQUFTLENBQUM7O0FBRWQsUUFBSSxVQUFVLEdBQUcsUUFBUSxDQUFDLE9BQU8sQ0FBQyxHQUFHLENBQUMsQ0FBQztB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CBudWxsO1xufVxuIl19 | ||
define("htmlbars-util/object-utils", ["exports"], function (exports) { | ||
exports.merge = merge; | ||
@@ -380,14 +365,7 @@ exports.shallowCopy = shallowCopy; | ||
} | ||
}); | ||
define('htmlbars-util/quoting', ['exports'], function (exports) { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXV0aWwvb2JqZWN0LXV0aWxzLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7VUFBZ0IsS0FBSyxHQUFMLEtBQUs7VUFRTCxXQUFXLEdBQVgsV0FBVztVQUlYLE1BQU0sR0FBTixNQUFNO1VBWU4sU0FBUyxHQUFULFNBQVM7O0FBeEJsQixXQUFTLEtBQUssQ0FBQyxPQUFPLEVBQUUsUUFBUSxFQUFFO0FBQ3ZDLFNBQUssSUFBSSxJQUFJLElBQUksUUFBUSxFQUFFO0FBQ3pCLFVBQUksT0FBTyxDQUFDLGNBQWMsQ0FBQyxJQUFJLENBQUMsRUFBRTtBQUFFLGlCQUFTO09BQUU7QUFDL0MsYUFBTyxDQUFDLElBQUksQ0FBQyxHQUFHLFFBQVEsQ0FBQyxJQUFJLENBQUMsQ0FBQztLQUNoQztBQUNELFdBQU8sT0FBTyxDQUFDO0dBQ2hCOztBQUVNLFdBQVMsV0FBVyxDQUFDLEdBQUcsRUFBRTtBQUMvQixXQUFPLEtBQUssQ0FBQyxFQUFFLEVBQUUsR0FBRyxDQUFDLENBQUM7R0FDdkI7O0FBRU0sV0FBUyxNQUFNLENBQUMsR0FBRyxFQUFFO0FBQzFCLFFBQUksR0FBRyxHQUFHLEVBQUUsQ0FBQzs7QUFFYixTQUFLLElBQUksSUFBSSxJQUFJLEdBQUcsRUFBRTtBQUNwQixVQUFJLEdBQUcsQ0FBQyxjQUFjLENBQUMsSUFBSSxDQUFDLEVBQUU7QUFDNUIsV0FBRyxDQUFDLElBQUksQ0FBQyxHQUFHLElBQ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JqKSB7XG4gICAgaWYgKG9iai5oYXNPd25Qcm9wZXJ0eShwcm9wKSkge1xuICAgICAgY291bnQrKztcbiAgICB9XG4gIH1cblxuICByZXR1cm4gY291bnQ7XG59XG4iXX0= | ||
define("htmlbars-util/quoting", ["exports"], function (exports) { | ||
exports.hash = hash; | ||
exports.repeat = repeat; | ||
exports.escapeString = escapeString; | ||
exports.string = string; | ||
exports.array = array; | ||
function escapeString(str) { | ||
@@ -400,2 +378,4 @@ str = str.replace(/\\/g, "\\\\"); | ||
exports.escapeString = escapeString; | ||
function string(str) { | ||
@@ -405,2 +385,4 @@ return "\"" + escapeString(str) + "\""; | ||
exports.string = string; | ||
function array(a) { | ||
@@ -410,2 +392,4 @@ return "[" + a + "]"; | ||
exports.array = array; | ||
function hash(pairs) { | ||
@@ -422,15 +406,9 @@ return "{" + pairs.join(", ") + "}"; | ||
} | ||
}); | ||
define('htmlbars-util/safe-string', ['exports', './handlebars/safe-string'], function (exports, SafeString) { | ||
'use strict'; | ||
exports['default'] = SafeString['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXV0aWwvcXVvdGluZy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO1VBcUJnQixJQUFJLEdBQUosSUFBSTtVQUlKLE1BQU0sR0FBTixNQUFNO0FBekJ0QixXQUFTLFlBQVksQ0FBQyxHQUFHLEVBQUU7QUFDekIsT0FBRyxHQUFHLEdBQUcsQ0FBQyxPQUFPLENBQUMsS0FBSyxFQUFFLE1BQU0sQ0FBQyxDQUFDO0FBQ2pDLE9BQUcsR0FBRyxHQUFHLENBQUMsT0FBTyxDQUFDLElBQUksRUFBRSxNQUFLLENBQUMsQ0FBQztBQUMvQixPQUFHLEdBQUcsR0FBRyxDQUFDLE9BQU8sQ0FBQyxLQUFLLEVBQUUsS0FBSyxDQUFDLENBQUM7QUFDaEMsV0FBTyxHQUFHLENBQUM7R0FDWj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lU3RyaW5nKHN0cikgKyAnXCInO1xufVxuXG5leHBvcnQgeyBzdHJpbmcgfTtcblxuZnVuY3Rpb24gYXJyYXkoYSkge1xuICByZXR1cm4gXCJbXCIgKyBhICsgXCJdXCI7XG59XG5cbmV4cG9ydCB7IGFycmF5IH07XG5cbmV4cG9ydCBmdW5jdGlvbiBoYXNoKHBhaXJzKSB7XG4gIHJldHVybiBcIntcIiArIHBhaXJzLmpvaW4oXCIsIFwiKSArIFwifVwiO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gcmVwZWF0KGNoYXJzLCB0aW1lcykge1xuICB2YXIgc3RyID0gXCJcIjtcbiAgd2hpbGUgKHRpbWVzLS0pIHtcbiAgICBzdHIgKz0gY2hhcnM7XG4gIH1cbiAgcmV0dXJuIHN0cjtcbn1cbiJdfQ== | ||
define('htmlbars-util/safe-string', ['exports', './handlebars/safe-string'], function (exports, _handlebarsSafeString) { | ||
exports.default = _handlebarsSafeString.default; | ||
}); | ||
define('htmlbars-util/template-utils', ['exports', '../htmlbars-util/morph-utils'], function (exports, morph_utils) { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJodG1sYmFycy11dGlsL3NhZmUtc3RyaW5nLmpzIiwic291cmNlc0NvbnRlbnQiOltdfQ== | ||
define("htmlbars-util/template-utils", ["exports", "../htmlbars-util/morph-utils"], function (exports, _htmlbarsUtilMorphUtils) { | ||
exports.RenderState = RenderState; | ||
@@ -455,3 +433,2 @@ exports.blockFor = blockFor; | ||
this.handledMorphs = {}; | ||
this.collisions = undefined; | ||
@@ -515,2 +492,3 @@ // The morph to clear once rendering is complete. By | ||
} | ||
function renderAndCleanup(morph, env, options, shadowOptions, callback) { | ||
@@ -523,3 +501,2 @@ // The RenderState object is used to collect information about what the | ||
var renderState = options.renderState; | ||
renderState.collisions = undefined; | ||
renderState.shadowOptions = shadowOptions; | ||
@@ -596,3 +573,3 @@ | ||
morph_utils.visitChildren(morph.childNodes, destroyNode); | ||
_htmlbarsUtilMorphUtils.visitChildren(morph.childNodes, destroyNode); | ||
@@ -626,17 +603,19 @@ // TODO: Deal with logical children that are not in the DOM tree | ||
} | ||
}); | ||
define('htmlbars-util/void-tag-names', ['exports', './array-utils'], function (exports, array_utils) { | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXV0aWwvdGVtcGxhdGUtdXRpbHMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtVQUVnQixXQUFXLEdBQVgsV0FBVztVQXdCWCxRQUFRLEdBQVIsUUFBUTtVQWdEUixnQkFBZ0IsR0FBaEIsZ0JBQWdCO1VBcURoQixVQUFVLEdBQVYsVUFBVTtVQTBCVixjQUFjLEdBQWQsY0FBYzs7QUF2SnZCLFdBQVMsV0FBVyxDQUFDLFVBQVUsRUFBRSxTQUFTLEVBQUU7OztBQUdqRCxRQUFJLENBQUMsZ0JBQWdCLEdBQUcsU0FBUyxDQUFDOzs7O0FBSWxDLFFBQUksQ0FBQyxnQkFBZ0IsR0FBRyxJQUFJLENBQUM7Ozs7O0FBSzdCLFFBQUksQ0FBQyxhQUFhLEdBQUcsRUFBRSxDQUFDOzs7Ozs7O0FBT3hCLFFBQUksQ0FBQyxZQUFZLEdBQUcsVUFBVSxDQUFDOztBQUUvQixRQUFJLENBQUMsYUFBYSxHQUFHLElBQUksQ0FBQztHQUMzQjs7QUFFTSxXQUFTLFFBQVEsQ0FBQyxNQUFNLEVBQUUsUUFBUSxFQUFFLFlBQVksRUFBRTtBQUN2RCxRQUFJLEtBQUssR0FBRyxVQUFTLEdBQUcsRUFBRSxjQUFjLEVBQUUsSUFBSSxFQUFFLFVBQVUsRUFBRSxXQUFXLEVBQUUsT0FBTyxFQUFFO0FBQ2hGLFVBQUksVUFBVSxDQUFDLFVBQVUsRUFBRTt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gbW9ycGgubGFzdFlpZWxkZWQgPSBudWxsO1xuICBtb3JwaC5jaGlsZE5vZGVzID0gbnVsbDtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGNsZWFyTW9ycGhMaXN0KG1vcnBoTGlzdCwgbW9ycGgsIGVudikge1xuICBsZXQgaXRlbSA9IG1vcnBoTGlzdC5maXJzdENoaWxkTW9ycGg7XG5cbiAgd2hpbGUgKGl0ZW0pIHtcbiAgICBsZXQgbmV4dCA9IGl0ZW0ubmV4dE1vcnBoO1xuICAgIGRlbGV0ZSBtb3JwaC5tb3JwaE1hcFtpdGVtLmtleV07XG4gICAgY2xlYXJNb3JwaChpdGVtLCBlbnYsIHRydWUpO1xuICAgIGl0ZW0uZGVzdHJveSgpO1xuXG4gICAgaXRlbSA9IG5leHQ7XG4gIH1cblxuICAvLyBSZW1vdmUgdGhlIE1vcnBoTGlzdCBmcm9tIHRoZSBtb3JwaC5cbiAgbW9ycGhMaXN0LmNsZWFyKCk7XG4gIG1vcnBoLm1vcnBoTGlzdCA9IG51bGw7XG59XG4iXX0= | ||
define("htmlbars-util/void-tag-names", ["exports", "./array-utils"], function (exports, _arrayUtils) { | ||
'use strict'; | ||
// The HTML elements in this list are speced by | ||
// http://www.w3.org/TR/html-markup/syntax.html#syntax-elements, | ||
// and will be forced to close regardless of if they have a | ||
// self-closing /> at the end. | ||
var voidTagNames = "area base br col command embed hr img input keygen link meta param source track wbr"; | ||
var voidMap = {}; | ||
array_utils.forEach(voidTagNames.split(" "), function (tagName) { | ||
_arrayUtils.forEach(voidTagNames.split(" "), function (tagName) { | ||
voidMap[tagName] = true; | ||
}); | ||
exports['default'] = voidMap; | ||
}); | ||
exports.default = voidMap; | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXV0aWwvdm9pZC10YWctbmFtZXMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBTU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esModule = true; | ||
var Morph = require('./htmlbars-runtime/morph'); | ||
var AttrMorph = require('./morph-attr'); | ||
var build_html_dom = require('./dom-helper/build-html-dom'); | ||
var classes = require('./dom-helper/classes'); | ||
var prop = require('./dom-helper/prop'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
var _htmlbarsRuntimeMorph = require("./htmlbars-runtime/morph"); | ||
var _htmlbarsRuntimeMorph2 = _interopRequireDefault(_htmlbarsRuntimeMorph); | ||
var _morphAttr = require("./morph-attr"); | ||
var _morphAttr2 = _interopRequireDefault(_morphAttr); | ||
var _domHelperBuildHtmlDom = require("./dom-helper/build-html-dom"); | ||
var _domHelperClasses = require("./dom-helper/classes"); | ||
var _domHelperProp = require("./dom-helper/prop"); | ||
var doc = typeof document === "undefined" ? false : document; | ||
@@ -26,3 +36,3 @@ | ||
var canRemoveSvgViewBoxAttribute = doc && (doc.createElementNS ? (function (document) { | ||
var element = document.createElementNS(build_html_dom.svgNamespace, "svg"); | ||
var element = document.createElementNS(_domHelperBuildHtmlDom.svgNamespace, "svg"); | ||
element.setAttribute("viewBox", "0 0 100 100"); | ||
@@ -44,4 +54,4 @@ element.removeAttribute("viewBox"); | ||
function interiorNamespace(element) { | ||
if (element && element.namespaceURI === build_html_dom.svgNamespace && !build_html_dom.svgHTMLIntegrationPoints[element.tagName]) { | ||
return build_html_dom.svgNamespace; | ||
if (element && element.namespaceURI === _domHelperBuildHtmlDom.svgNamespace && !_domHelperBuildHtmlDom.svgHTMLIntegrationPoints[element.tagName]) { | ||
return _domHelperBuildHtmlDom.svgNamespace; | ||
} else { | ||
@@ -273,5 +283,4 @@ return null; | ||
prototype.setProperty = function (element, name, value, namespace) { | ||
var lowercaseName = name.toLowerCase(); | ||
if (element.namespaceURI === build_html_dom.svgNamespace || lowercaseName === "style") { | ||
if (prop.isAttrRemovalValue(value)) { | ||
if (element.namespaceURI === _domHelperBuildHtmlDom.svgNamespace) { | ||
if (_domHelperProp.isAttrRemovalValue(value)) { | ||
element.removeAttribute(name); | ||
@@ -286,3 +295,3 @@ } else { | ||
} else { | ||
var _normalizeProperty = prop.normalizeProperty(element, name); | ||
var _normalizeProperty = _domHelperProp.normalizeProperty(element, name); | ||
@@ -295,3 +304,3 @@ var normalized = _normalizeProperty.normalized; | ||
} else { | ||
if (prop.isAttrRemovalValue(value)) { | ||
if (_domHelperProp.isAttrRemovalValue(value)) { | ||
element.removeAttribute(name); | ||
@@ -316,3 +325,3 @@ } else { | ||
if (tagName === "svg") { | ||
namespace = build_html_dom.svgNamespace; | ||
namespace = _domHelperBuildHtmlDom.svgNamespace; | ||
} else { | ||
@@ -340,4 +349,4 @@ namespace = interiorNamespace(contextualElement); | ||
prototype.addClasses = classes.addClasses; | ||
prototype.removeClasses = classes.removeClasses; | ||
prototype.addClasses = _domHelperClasses.addClasses; | ||
prototype.removeClasses = _domHelperClasses.removeClasses; | ||
@@ -387,3 +396,3 @@ prototype.setNamespace = function (ns) { | ||
prototype.AttrMorphClass = AttrMorph['default']; | ||
prototype.AttrMorphClass = _morphAttr2.default; | ||
@@ -406,3 +415,3 @@ prototype.createAttrMorph = function (element, attrName, namespace) { | ||
prototype.MorphClass = Morph['default']; | ||
prototype.MorphClass = _htmlbarsRuntimeMorph2.default; | ||
@@ -429,3 +438,3 @@ prototype.createMorph = function (parent, start, end, contextualElement) { | ||
var fragment = this.createDocumentFragment(); | ||
return Morph['default'].create(this, contextualElement, fragment); | ||
return _htmlbarsRuntimeMorph2.default.create(this, contextualElement, fragment); | ||
}; | ||
@@ -439,5 +448,5 @@ | ||
this.appendChild(element, comment); | ||
return Morph['default'].create(this, element, comment); | ||
return _htmlbarsRuntimeMorph2.default.create(this, element, comment); | ||
} else { | ||
var morph = Morph['default'].attach(this, element, firstChild, element.lastChild); | ||
var morph = _htmlbarsRuntimeMorph2.default.attach(this, element, firstChild, element.lastChild); | ||
morph.clear(); | ||
@@ -494,6 +503,6 @@ return morph; | ||
if (interiorNamespace(contextualElement) === build_html_dom.svgNamespace) { | ||
if (interiorNamespace(contextualElement) === _domHelperBuildHtmlDom.svgNamespace) { | ||
childNodes = buildSVGDOM(html, this); | ||
} else { | ||
var nodes = build_html_dom.buildHTMLDOM(html, contextualElement, this); | ||
var nodes = _domHelperBuildHtmlDom.buildHTMLDOM(html, contextualElement, this); | ||
if (detectOmittedStartTag(html, contextualElement)) { | ||
@@ -545,2 +554,4 @@ var node = nodes[0]; | ||
exports['default'] = DOMHelper; | ||
exports.default = DOMHelper; | ||
module.exports = exports.default; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImRvbS1oZWxwZXIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztvQ0FBa0IsMEJBQTBCOzs7O3lCQUN0QixjQUFjOzs7O3FDQUs3Qiw2QkFBNkI7O2dDQUk3QixzQkFBc0I7OzZCQUd0QixtQkFBbUI7O0FBRzFCLElBQUksR0FBRyxHQUFHLE9BQU8sUUFBUSxLQUFLLFdBQVcsR0FBRyxLQUFLLEdBQUcsUUFBUSxDQUFDOztBQUU3RCxJQUFJLHFCQUFxQixHQUFHLEdBQUcsSUFBSSxDQUFDLFVBQVMsUUFBUSxFQUFDO0FBQ3BELE1BQUksT0FBTyxHQUFHLFFBQVEsQ0FBQyxhQUFhLENBQUMsS0FBSyxDQUFDLENBQUM7QUFDNUMsU0FBTyxDQUFDLFdBQVcsQ0FBRSxRQUFRLENBQUMsY0FBYyxDQUFDLEVBQUUsQ0FBQyxDQUFFLENBQUM7QUFDbkQsTUFBSSxhQUFhLEdBQUcsT0FBTyxDQUFDLFNBQVMsQ0FBQyxJQUFJLENBQUMsQ0FBQztBQUM1QyxTQUFPLGFBQWEsQ0FBQyxVQUFVLENBQUMsTUFBTSxLQUFLLENBQUMsQ0FBQztDQUM5QyxDQUFBLENBQUUsR0FBRyxDQUFDLENBQUM7O0FBRVIsSUFBSSx1QkFBdUIsR0FBRyxHQUFHLElB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vdG9jb2xGb3JVUkwgPSBmdW5jdGlvbih1cmwpIHtcbiAgaWYgKCFwYXJzaW5nTm9kZSkge1xuICAgIHBhcnNpbmdOb2RlID0gdGhpcy5kb2N1bWVudC5jcmVhdGVFbGVtZW50KCdhJyk7XG4gIH1cblxuICBwYXJzaW5nTm9kZS5ocmVmID0gdXJsO1xuICByZXR1cm4gcGFyc2luZ05vZGUucHJvdG9jb2w7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBET01IZWxwZXI7XG4iXX0= |
@@ -1,7 +0,8 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
/* global XMLSerializer:false */ | ||
var svgHTMLIntegrationPoints = { foreignObject: 1, desc: 1, title: 1 }; | ||
exports.svgHTMLIntegrationPoints = svgHTMLIntegrationPoints; | ||
var svgNamespace = 'http://www.w3.org/2000/svg'; | ||
exports.svgNamespace = svgNamespace; | ||
var doc = typeof document === 'undefined' ? false : document; | ||
@@ -243,3 +244,3 @@ | ||
if (needsIntegrationPointFix) { | ||
buildHTMLDOM = function buildHTMLDOM(html, contextualElement, dom) { | ||
exports.buildHTMLDOM = buildHTMLDOM = function buildHTMLDOM(html, contextualElement, dom) { | ||
if (svgHTMLIntegrationPoints[contextualElement.tagName]) { | ||
@@ -252,7 +253,6 @@ return buildIESafeDOM(html, document.createElement('div'), dom); | ||
} else { | ||
buildHTMLDOM = buildIESafeDOM; | ||
exports.buildHTMLDOM = buildHTMLDOM = buildIESafeDOM; | ||
} | ||
exports.svgHTMLIntegrationPoints = svgHTMLIntegrationPoints; | ||
exports.svgNamespace = svgNamespace; | ||
exports.buildHTMLDOM = buildHTMLDOM; | ||
exports.buildHTMLDOM = buildHTMLDOM; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImRvbS1oZWxwZXIvYnVpbGQtaHRtbC1kb20uanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFDTyxJQUFJLHdCQUF3QixHQUF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UxET019O1xuIl19 |
@@ -1,3 +0,2 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
var doc = typeof document === 'undefined' ? false : document; | ||
@@ -83,3 +82,3 @@ | ||
if (canClassList) { | ||
addClasses = function addClasses(element, classNames) { | ||
exports.addClasses = addClasses = function addClasses(element, classNames) { | ||
if (element.classList) { | ||
@@ -97,3 +96,3 @@ if (classNames.length === 1) { | ||
}; | ||
removeClasses = function removeClasses(element, classNames) { | ||
exports.removeClasses = removeClasses = function removeClasses(element, classNames) { | ||
if (element.classList) { | ||
@@ -112,7 +111,8 @@ if (classNames.length === 1) { | ||
} else { | ||
addClasses = addClassesViaAttribute; | ||
removeClasses = removeClassesViaAttribute; | ||
exports.addClasses = addClasses = addClassesViaAttribute; | ||
exports.removeClasses = removeClasses = removeClassesViaAttribute; | ||
} | ||
exports.addClasses = addClasses; | ||
exports.removeClasses = removeClasses; | ||
exports.removeClasses = removeClasses; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImRvbS1oZWxwZXIvY2xhc3Nlcy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsSUFBSSxHQUFHLEdBQUcsT0FBTyxRQUFRLEtBQUssV0FBVyxHQUFHLEtBQUssR0FBRyxRQUFRLENBQUM7OztBQUc3RCxJQUFJLFlBQVksR0FBRyxHQUFHLElBQUksQ0FBQyxZQUFVO0FBQ25DLE1BQUksQ0FBQyxHQUFHLFFBQVEsQ0FBQyxhQUFhLENBQUMsS0FBSyxDQUFDLENBQUM7QUFDdEMsTUFBSSxDQUFDLENBQUMsQ0FBQyxTQUFTLEVBQUU7QUFDaEIsV0FBTyxLQUFLLENBQUM7R0FDZDtBQUNELEdBQUMsQ0FBQyxTQUFTLENBQUMsR0FBRyxDQUFDLEtBQUssQ0FBQyxDQUFDO0FBQ3ZCLEdBQUMsQ0FBQyxTQUFTLENBQUMsR0FBRyxDQUFDLEtBQUssRUFBRS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3QsIGNsYXNzTmFtZXMpO1xuICAgICAgfVxuICAgIH0gZWxzZSB7XG4gICAgICByZW1vdmVDbGFzc2VzVmlhQXR0cmlidXRlKGVsZW1lbnQsIGNsYXNzTmFtZXMpO1xuICAgIH1cbiAgfTtcbn0gZWxzZSB7XG4gIGFkZENsYXNzZXMgPSBhZGRDbGFzc2VzVmlhQXR0cmlidXRlO1xuICByZW1vdmVDbGFzc2VzID0gcmVtb3ZlQ2xhc3Nlc1ZpYUF0dHJpYnV0ZTtcbn1cblxuZXhwb3J0IHtcbiAgYWRkQ2xhc3NlcyxcbiAgcmVtb3ZlQ2xhc3Nlc1xufTtcbiJdfQ== |
@@ -1,3 +0,2 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
exports.isAttrRemovalValue = isAttrRemovalValue; | ||
@@ -17,2 +16,3 @@ exports.normalizeProperty = normalizeProperty; | ||
*/ | ||
function normalizeProperty(element, slotName) { | ||
@@ -35,3 +35,3 @@ var type, normalized; | ||
if (type === 'prop' && preferAttr(element.tagName, normalized)) { | ||
if (type === 'prop' && (normalized.toLowerCase() === 'style' || preferAttr(element.tagName, normalized))) { | ||
type = 'attr'; | ||
@@ -79,2 +79,3 @@ } | ||
return tag && tag[propName.toLowerCase()] || false; | ||
} | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImRvbS1oZWxwZXIvcHJvcC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO1FBQWdCLGtCQUFrQixHQUFsQixrQkFBa0I7UUFVbEIsaUJBQWlCLEdBQWpCLGlCQUFpQjs7QUFWMUIsU0FBUyxrQkFBa0IsQ0FBQyxLQUFLLEVBQUU7QUFDeEMsU0FBTyxLQUFLLEtBQUssSUFBSSxJQUFJLEtBQUssS0FBSyxTQUFTLENBQUM7Q0FDOUM7Ozs7Ozs7Ozs7QUFRTSxTQUFTLGlCQUFpQixDQUFDLE9BQU8sRUFBRSxRQUFRLEV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lKSB7XG4gIHZhciB0YWcgPSBBVFRSX09WRVJSSURFU1t0YWdOYW1lLnRvVXBwZXJDYXNlKCldO1xuICByZXR1cm4gdGFnICYmIHRhZ1twcm9wTmFtZS50b0xvd2VyQ2FzZSgpXSB8fCBmYWxzZTtcbn1cbiJdfQ== |
@@ -1,7 +0,8 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
var compiler = require('./htmlbars-compiler/compiler'); | ||
var _htmlbarsCompilerCompiler = require("./htmlbars-compiler/compiler"); | ||
exports.compile = compiler.compile; | ||
exports.compileSpec = compiler.compileSpec; | ||
exports.template = compiler.template; | ||
exports.compile = _htmlbarsCompilerCompiler.compile; | ||
exports.compileSpec = _htmlbarsCompilerCompiler.compileSpec; | ||
exports.template = _htmlbarsCompilerCompiler.template; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLWNvbXBpbGVyLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O3dDQUlPLDhCQUE4Qjs7UUFHbkMsT0FBTyw2QkFOUCxPQUFPO1FBT1AsV0FBVyw2QkFOWCxXQUFXO1FBT1gsUUFBUSw2QkFOUixRQUFRIiwiZmlsZSI6Imh0bWxiYXJzLWNvbXBpbGVyLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtcbiAgY29tcGlsZSxcbiAgY29tcGlsZVNwZWMsXG4gIHRlbXBsYXRlXG59IGZyb20gXCIuL2h0bWxiYXJzLWNvbXBpbGVyL2NvbXBpbGVyXCI7XG5cbmV4cG9ydCB7XG4gIGNvbXBpbGUsXG4gIGNvbXBpbGVTcGVjLFxuICB0ZW1wbGF0ZVxufTtcbiJdfQ== |
@@ -1,3 +0,2 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
exports.compileSpec = compileSpec; | ||
@@ -7,11 +6,37 @@ exports.template = template; | ||
var parser = require('../htmlbars-syntax/parser'); | ||
var TemplateCompiler = require('./template-compiler'); | ||
var hooks = require('../htmlbars-runtime/hooks'); | ||
var render = require('../htmlbars-runtime/render'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
/*jshint evil:true*/ | ||
var _htmlbarsSyntaxParser = require("../htmlbars-syntax/parser"); | ||
var _templateCompiler = require("./template-compiler"); | ||
var _templateCompiler2 = _interopRequireDefault(_templateCompiler); | ||
var _htmlbarsRuntimeHooks = require("../htmlbars-runtime/hooks"); | ||
var _htmlbarsRuntimeRender = require("../htmlbars-runtime/render"); | ||
var _htmlbarsRuntimeRender2 = _interopRequireDefault(_htmlbarsRuntimeRender); | ||
/* | ||
* Compile a string into a template spec string. The template spec is a string | ||
* representation of a template. Usually, you would use compileSpec for | ||
* pre-compilation of a template on the server. | ||
* | ||
* Example usage: | ||
* | ||
* var templateSpec = compileSpec("Howdy {{name}}"); | ||
* // This next step is basically what plain compile does | ||
* var template = new Function("return " + templateSpec)(); | ||
* | ||
* @method compileSpec | ||
* @param {String} string An HTMLBars template string | ||
* @return {TemplateSpec} A template spec string | ||
*/ | ||
function compileSpec(string, options) { | ||
var ast = parser.preprocess(string, options); | ||
var compiler = new TemplateCompiler['default'](options); | ||
var ast = _htmlbarsSyntaxParser.preprocess(string, options); | ||
var compiler = new _templateCompiler2.default(options); | ||
var program = compiler.compile(ast); | ||
@@ -26,2 +51,3 @@ return program; | ||
*/ | ||
function template(templateSpec) { | ||
@@ -62,4 +88,6 @@ return new Function("return " + templateSpec)(); | ||
*/ | ||
function compile(string, options) { | ||
return hooks.wrap(template(compileSpec(string, options)), render['default']); | ||
} | ||
return _htmlbarsRuntimeHooks.wrap(template(compileSpec(string, options)), _htmlbarsRuntimeRender2.default); | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLWNvbXBpbGVyL2NvbXBpbGVyLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7UUF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vcHRpb25zKSksIHJlbmRlcik7XG59XG4iXX0= |
@@ -1,6 +0,7 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
var utils = require('./utils'); | ||
var quoting = require('../htmlbars-util/quoting'); | ||
var _utils = require("./utils"); | ||
var _htmlbarsUtilQuoting = require("../htmlbars-util/quoting"); | ||
var svgNamespace = "http://www.w3.org/2000/svg", | ||
@@ -16,3 +17,3 @@ | ||
exports['default'] = FragmentJavaScriptCompiler; | ||
exports.default = FragmentJavaScriptCompiler; | ||
@@ -27,3 +28,3 @@ FragmentJavaScriptCompiler.prototype.compile = function (opcodes, options) { | ||
this.source.push("function buildFragment(dom) {\n"); | ||
utils.processOpcodes(this, opcodes); | ||
_utils.processOpcodes(this, opcodes); | ||
this.source.push(this.indent + "}"); | ||
@@ -45,3 +46,3 @@ | ||
this.ensureNamespace(); | ||
this.source.push(this.indent + " var " + el + " = dom.createElement(" + quoting.string(tagName) + ");\n"); | ||
this.source.push(this.indent + " var " + el + " = dom.createElement(" + _htmlbarsUtilQuoting.string(tagName) + ");\n"); | ||
if (svgHTMLIntegrationPoints[tagName]) { | ||
@@ -54,3 +55,3 @@ this.pushNamespaceFrame({ namespace: null, depth: this.depth }); | ||
var el = "el" + ++this.depth; | ||
this.source.push(this.indent + " var " + el + " = dom.createTextNode(" + quoting.string(str) + ");\n"); | ||
this.source.push(this.indent + " var " + el + " = dom.createTextNode(" + _htmlbarsUtilQuoting.string(str) + ");\n"); | ||
}; | ||
@@ -60,3 +61,3 @@ | ||
var el = "el" + ++this.depth; | ||
this.source.push(this.indent + " var " + el + " = dom.createComment(" + quoting.string(str) + ");\n"); | ||
this.source.push(this.indent + " var " + el + " = dom.createComment(" + _htmlbarsUtilQuoting.string(str) + ");\n"); | ||
}; | ||
@@ -72,5 +73,5 @@ | ||
if (namespace) { | ||
this.source.push(this.indent + " dom.setAttributeNS(" + el + "," + quoting.string(namespace) + "," + quoting.string(name) + "," + quoting.string(value) + ");\n"); | ||
this.source.push(this.indent + " dom.setAttributeNS(" + el + "," + _htmlbarsUtilQuoting.string(namespace) + "," + _htmlbarsUtilQuoting.string(name) + "," + _htmlbarsUtilQuoting.string(value) + ");\n"); | ||
} else { | ||
this.source.push(this.indent + " dom.setAttribute(" + el + "," + quoting.string(name) + "," + quoting.string(value) + ");\n"); | ||
this.source.push(this.indent + " dom.setAttribute(" + el + "," + _htmlbarsUtilQuoting.string(name) + "," + _htmlbarsUtilQuoting.string(value) + ");\n"); | ||
} | ||
@@ -103,5 +104,7 @@ }; | ||
if (this.domNamespace !== correctNamespace) { | ||
this.source.push(this.indent + " dom.setNamespace(" + (correctNamespace ? quoting.string(correctNamespace) : "null") + ");\n"); | ||
this.source.push(this.indent + " dom.setNamespace(" + (correctNamespace ? _htmlbarsUtilQuoting.string(correctNamespace) : "null") + ");\n"); | ||
this.domNamespace = correctNamespace; | ||
} | ||
}; | ||
}; | ||
module.exports = exports.default; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLWNvbXBpbGVyL2ZyYWdtZW50LWphdmFzY3JpcHQtY29tcGlsZXIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7cUJBQStCLFNBQVM7O21DQUNqQiwwQkFBMEI7O0FBRWpELElBQUksWUFBWSxHQUFHLDRCQUE0Qjs7O0FBRTNDLHdCQUF3QixHQUFHLEVBQUMsZUFBZSxFQUFDLElBQUksRUFBRSxNQUFNLEVBQUMsSUFBSSxFQUFFLE9BQU8sRUFBQyxJQUFJLEVBQUMsQ0FBQzs7QUFHakYsU0FBUywwQkFBMEIsR0FBRztBQUNwQyxNQUFJLENBQUMsTUFBTSxHQUFHLEVBQUUsQ0FBQztBQUNqQixNQUFJLENBQUMsS0FBSyxHQUFHLENBQUMsQ0FBQyxDQUFDO0NBQ2pCOztrQkFFYywwQkFBMEI7O0FBRXpDLDBCQUEwQixDQUFDLFNBQVMsQ0FBQyxPQUFPLEdBQUc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iAodGhpcy5kb21OYW1lc3BhY2UgIT09IGNvcnJlY3ROYW1lc3BhY2UpIHtcbiAgICB0aGlzLnNvdXJjZS5wdXNoKHRoaXMuaW5kZW50KycgIGRvbS5zZXROYW1lc3BhY2UoJysoY29ycmVjdE5hbWVzcGFjZSA/IHN0cmluZyhjb3JyZWN0TmFtZXNwYWNlKSA6ICdudWxsJykrJyk7XFxuJyk7XG4gICAgdGhpcy5kb21OYW1lc3BhY2UgPSBjb3JyZWN0TmFtZXNwYWNlO1xuICB9XG59O1xuIl19 |
@@ -1,8 +0,15 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
var TemplateVisitor = require('./template-visitor'); | ||
var utils = require('./utils'); | ||
var htmlbars_util = require('../htmlbars-util'); | ||
var array_utils = require('../htmlbars-util/array-utils'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
var _templateVisitor = require("./template-visitor"); | ||
var _templateVisitor2 = _interopRequireDefault(_templateVisitor); | ||
var _utils = require("./utils"); | ||
var _htmlbarsUtil = require("../htmlbars-util"); | ||
var _htmlbarsUtilArrayUtils = require("../htmlbars-util/array-utils"); | ||
function FragmentOpcodeCompiler() { | ||
@@ -12,9 +19,9 @@ this.opcodes = []; | ||
exports['default'] = FragmentOpcodeCompiler; | ||
exports.default = FragmentOpcodeCompiler; | ||
FragmentOpcodeCompiler.prototype.compile = function (ast) { | ||
var templateVisitor = new TemplateVisitor['default'](); | ||
var templateVisitor = new _templateVisitor2.default(); | ||
templateVisitor.visit(ast); | ||
utils.processOpcodes(this, templateVisitor.actions); | ||
_utils.processOpcodes(this, templateVisitor.actions); | ||
@@ -40,3 +47,3 @@ return this.opcodes; | ||
this.opcode("createElement", [element.tag]); | ||
array_utils.forEach(element.attributes, this.attribute, this); | ||
_htmlbarsUtilArrayUtils.forEach(element.attributes, this.attribute, this); | ||
}; | ||
@@ -76,3 +83,3 @@ | ||
if (attr.value.type === "TextNode") { | ||
var namespace = htmlbars_util.getAttrNamespace(attr.name); | ||
var namespace = _htmlbarsUtil.getAttrNamespace(attr.name); | ||
this.opcode("setAttribute", [attr.name, attr.value.chars, namespace]); | ||
@@ -84,2 +91,4 @@ } | ||
this.opcode("setNamespace", [namespace]); | ||
}; | ||
}; | ||
module.exports = exports.default; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLWNvbXBpbGVyL2ZyYWdtZW50LW9wY29kZS1jb21waWxlci5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OytCQUE0QixvQkFBb0I7Ozs7cUJBQ2pCLFNBQVM7OzRCQUNQLGtCQUFrQjs7c0NBQzNCLDhCQUE4Qjs7QUFFdEQsU0FBUyxzQkFBc0IsR0FBRztBQUNoQyxNQUFJLENBQUMsT0FBTyxHQUFHLEVBQUUsQ0FBQztDQUNuQjs7a0JBRWMsc0JBQXNCOztBQUVyQyxzQkFBc0IsQ0FBQyxTQUFTLENBQUMsT0FBTyxHQUFHLFVBQVMsR0FBRyxFQUFFO0FBQ3ZELE1BQUksZUFBZSxHQUFHLCtCQUFxQixDQUFDO0FBQzVDLGlCQUFlLENBQUMsS0FBSyxDQUFDLEdBQUcsQ0FBQyxDQUFDOztBQUUzQixTQWRPLGNBQWMsQ0FjTixJQUFJLEVBQUUsZUFBZSxDQUFDLE9BQU8sQ0FBQyxDQUFDOztBQUU5QyxTQUFPLElBQUksQ0FBQyxPQUFPLENBQUM7Q0FDckIsQ0FBQzs7QUFFRixzQkFBc0IsQ0FBQyxTQUFTLENBQUMsTUFBTSxHQUFHLFVBQVMsSUFBSSxFQUFFLE1BQU0sRUFBRTtBQUMvRCxNQUFJLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxDQUFDLElBQUksRUFBRSxNQUFNLENBQUMsQ0FBQyxDQUFDO0NBQ25DLENBQUM7O0FBRUYsc0JBQXNCLENBQUMsU0FBUyxDQUFDLElBQUksR0FBRyxVQU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aGlzLm9wY29kZSgnc2V0TmFtZXNwYWNlJywgW25hbWVzcGFjZV0pO1xufTtcbiJdfQ== |
@@ -1,6 +0,7 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
var utils = require('./utils'); | ||
var quoting = require('../htmlbars-util/quoting'); | ||
var _utils = require("./utils"); | ||
var _htmlbarsUtilQuoting = require("../htmlbars-util/quoting"); | ||
function HydrationJavaScriptCompiler() { | ||
@@ -17,3 +18,3 @@ this.stack = []; | ||
exports['default'] = HydrationJavaScriptCompiler; | ||
exports.default = HydrationJavaScriptCompiler; | ||
@@ -41,3 +42,3 @@ var prototype = HydrationJavaScriptCompiler.prototype; | ||
utils.processOpcodes(this, opcodes); | ||
_utils.processOpcodes(this, opcodes); | ||
@@ -219,3 +220,3 @@ if (this.hasOpenBoundary) { | ||
var parent = this.getParent(), | ||
processing = "if (this.cachedFragment) { dom.repairClonedNode(" + parent + "," + quoting.array(blankChildTextNodes) + (isElementChecked ? ",true" : "") + "); }"; | ||
processing = "if (this.cachedFragment) { dom.repairClonedNode(" + parent + "," + _htmlbarsUtilQuoting.array(blankChildTextNodes) + (isElementChecked ? ",true" : "") + "); }"; | ||
this.fragmentProcessing.push(processing); | ||
@@ -254,2 +255,4 @@ }; | ||
return this.parents[this.parents.length - 1]; | ||
}; | ||
}; | ||
module.exports = exports.default; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLWNvbXBpbGVyL2h5ZHJhdGlvbi1qYXZhc2NyaXB0LWNvbXBpbGVyLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O3FCQUErQixTQUFTOzttQ0FDbEIsMEJBQTBCOztBQUVoRCxTQUFTLDJCQUEyQixHQUFHO0FBQ3JDLE1BQUksQ0FBQyxLQUFLLEdBQUcsRUFBRSxDQUFDO0FBQ2hCLE1BQUksQ0FBQyxNQUFNLEdBQUcsRUFBRSxDQUFDO0FBQ2pCLE1B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pbmcucHVzaCgndmFyICcrZWxlbWVudE5vZGVzTmFtZSsnID0gJyt0aGlzLmdldFBhcmVudCgpKyc7Jyk7XG4gIHRoaXMucGFyZW50c1t0aGlzLnBhcmVudHMubGVuZ3RoLTFdID0gW2VsZW1lbnROb2Rlc05hbWVdO1xufTtcblxucHJvdG90eXBlLmNvbnN1bWVQYXJlbnQgPSBmdW5jdGlvbihpKSB7XG4gIHZhciBuZXdQYXJlbnQgPSB0aGlzLmxhc3RQYXJlbnQoKS5zbGljZSgpO1xuICBuZXdQYXJlbnQucHVzaChpKTtcblxuICB0aGlzLnBhcmVudHMucHVzaChuZXdQYXJlbnQpO1xufTtcblxucHJvdG90eXBlLnBvcFBhcmVudCA9IGZ1bmN0aW9uKCkge1xuICB0aGlzLnBhcmVudHMucG9wKCk7XG59O1xuXG5wcm90b3R5cGUuZ2V0UGFyZW50ID0gZnVuY3Rpb24oKSB7XG4gIHZhciBsYXN0ID0gdGhpcy5sYXN0UGFyZW50KCkuc2xpY2UoKTtcbiAgdmFyIGZyYWcgPSBsYXN0LnNoaWZ0KCk7XG5cbiAgaWYgKCFsYXN0Lmxlbmd0aCkge1xuICAgIHJldHVybiBmcmFnO1xuICB9XG5cbiAgcmV0dXJuICdkb20uY2hpbGRBdCgnICsgZnJhZyArICcsIFsnICsgbGFzdC5qb2luKCcsICcpICsgJ10pJztcbn07XG5cbnByb3RvdHlwZS5sYXN0UGFyZW50ID0gZnVuY3Rpb24oKSB7XG4gIHJldHVybiB0aGlzLnBhcmVudHNbdGhpcy5wYXJlbnRzLmxlbmd0aC0xXTtcbn07XG4iXX0= |
@@ -1,9 +0,17 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
var TemplateVisitor = require('./template-visitor'); | ||
var utils = require('./utils'); | ||
var htmlbars_util = require('../htmlbars-util'); | ||
var array_utils = require('../htmlbars-util/array-utils'); | ||
var htmlbars_syntax__utils = require('../htmlbars-syntax/utils'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
var _templateVisitor = require("./template-visitor"); | ||
var _templateVisitor2 = _interopRequireDefault(_templateVisitor); | ||
var _utils = require("./utils"); | ||
var _htmlbarsUtil = require("../htmlbars-util"); | ||
var _htmlbarsUtilArrayUtils = require("../htmlbars-util/array-utils"); | ||
var _htmlbarsSyntaxUtils = require("../htmlbars-syntax/utils"); | ||
function detectIsElementChecked(element) { | ||
@@ -29,9 +37,9 @@ for (var i = 0, len = element.attributes.length; i < len; i++) { | ||
exports['default'] = HydrationOpcodeCompiler; | ||
exports.default = HydrationOpcodeCompiler; | ||
HydrationOpcodeCompiler.prototype.compile = function (ast) { | ||
var templateVisitor = new TemplateVisitor['default'](); | ||
var templateVisitor = new _templateVisitor2.default(); | ||
templateVisitor.visit(ast); | ||
utils.processOpcodes(this, templateVisitor.actions); | ||
_utils.processOpcodes(this, templateVisitor.actions); | ||
@@ -106,4 +114,4 @@ return this.opcodes; | ||
array_utils.forEach(element.attributes, this.attribute, this); | ||
array_utils.forEach(element.modifiers, this.elementModifier, this); | ||
_htmlbarsUtilArrayUtils.forEach(element.attributes, this.attribute, this); | ||
_htmlbarsUtilArrayUtils.forEach(element.modifiers, this.elementModifier, this); | ||
}; | ||
@@ -122,3 +130,3 @@ | ||
if (htmlbars_syntax__utils.isHelper(mustache)) { | ||
if (_htmlbarsSyntaxUtils.isHelper(mustache)) { | ||
prepareHash(this, mustache.hash); | ||
@@ -187,3 +195,3 @@ prepareParams(this, mustache.params); | ||
} else if (value.type === "MustacheStatement") { | ||
this.accept(htmlbars_syntax__utils.unwrapMustache(value)); | ||
this.accept(_htmlbarsSyntaxUtils.unwrapMustache(value)); | ||
} else if (value.type === "ConcatStatement") { | ||
@@ -210,3 +218,3 @@ prepareParams(this, value.parts); | ||
var escaped = true; | ||
var namespace = htmlbars_util.getAttrNamespace(attr.name); | ||
var namespace = _htmlbarsUtil.getAttrNamespace(attr.name); | ||
@@ -218,3 +226,3 @@ // TODO: Introduce context specific AST nodes to avoid switching here. | ||
escaped = value.escaped; | ||
this.accept(htmlbars_syntax__utils.unwrapMustache(value)); | ||
this.accept(_htmlbarsSyntaxUtils.unwrapMustache(value)); | ||
} else if (value.type === "ConcatStatement") { | ||
@@ -358,2 +366,4 @@ prepareParams(this, value.parts); | ||
morphs.length = 0; | ||
} | ||
} | ||
module.exports = exports.default; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLWNvbXBpbGVyL2h5ZHJhdGlvbi1vcGNvZGUtY29tcGlsZXIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OzsrQkFBNEIsb0JBQW9COzs7O3FCQUNqQixTQUFTOzs0QkFDUCxrQkFBa0I7O3NDQUMzQiw4QkFBOEI7O21DQUM3QiwwQkFBMEI7O0FBR25ELFNBQVMsc0JBQXNCLENBQUMsT0FBTyxFQUFDO0FBQ3RDLE9BQUssSUFBSSxDQUFDLEdBQUMsQ0FBQyxFQUFFLEdBQUcsR0FBQyxPQUFPLENBQUMsVUFBVSxDQUFDLE1BQU0sRUFBQyxDQUFDLEdBQUMsR0FBRyxFQUFDLENBQUMsRUFBRSxFQUFFO0FBQ3JELFFBQUksT0FBTyxDQUFDLFVBQVUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxJQUFJLEtBQUssU0FBUyxFQUFFO0FBQzVDLGFBQU8sSUFBSSxDQUFDO0tBQ2I7R0FDRjtBQUNELFNBQU8sS0FBSyxDQUFDO0NBQ2Q7O0FBRUQsU0FBUyx1QkFBdUIsR0FBRztBQUNqQyxNQUFJLENBQUMsT0FBTyxHQUFHLEVBQUUsQ0FBQztBQUNsQixNQUFJLENBQUMsS0FBSyxHQUFHLEVBQUUsQ0FBQztBQUNoQixNQUFJLENBQUMsVUFBVSxHQUFHLENBQUMsQ0FBQztBQUNwQixNQUFJLENBQUMsb0JBQW9CLEdBQUcsQ0FBQyxDQUFDO0FBQzlCLE1BQUksQ0FBQ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3JwaHMubGVuZ3RoOyArK2kpIHtcbiAgICBzcGxpY2VBcmdzLnB1c2goWydjcmVhdGVNb3JwaCcsIG1vcnBoc1tpXS5zbGljZSgpXSk7XG4gIH1cbiAgb3Bjb2Rlcy5zcGxpY2UuYXBwbHkob3Bjb2Rlcywgc3BsaWNlQXJncyk7XG4gIG1vcnBocy5sZW5ndGggPSAwO1xufVxuIl19 |
@@ -1,19 +0,38 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
var FragmentOpcodeCompiler = require('./fragment-opcode-compiler'); | ||
var FragmentJavaScriptCompiler = require('./fragment-javascript-compiler'); | ||
var HydrationOpcodeCompiler = require('./hydration-opcode-compiler'); | ||
var HydrationJavaScriptCompiler = require('./hydration-javascript-compiler'); | ||
var TemplateVisitor = require('./template-visitor'); | ||
var utils = require('./utils'); | ||
var quoting = require('../htmlbars-util/quoting'); | ||
var array_utils = require('../htmlbars-util/array-utils'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
var _fragmentOpcodeCompiler = require('./fragment-opcode-compiler'); | ||
var _fragmentOpcodeCompiler2 = _interopRequireDefault(_fragmentOpcodeCompiler); | ||
var _fragmentJavascriptCompiler = require('./fragment-javascript-compiler'); | ||
var _fragmentJavascriptCompiler2 = _interopRequireDefault(_fragmentJavascriptCompiler); | ||
var _hydrationOpcodeCompiler = require('./hydration-opcode-compiler'); | ||
var _hydrationOpcodeCompiler2 = _interopRequireDefault(_hydrationOpcodeCompiler); | ||
var _hydrationJavascriptCompiler = require('./hydration-javascript-compiler'); | ||
var _hydrationJavascriptCompiler2 = _interopRequireDefault(_hydrationJavascriptCompiler); | ||
var _templateVisitor = require('./template-visitor'); | ||
var _templateVisitor2 = _interopRequireDefault(_templateVisitor); | ||
var _utils = require('./utils'); | ||
var _htmlbarsUtilQuoting = require('../htmlbars-util/quoting'); | ||
var _htmlbarsUtilArrayUtils = require('../htmlbars-util/array-utils'); | ||
function TemplateCompiler(options) { | ||
this.options = options || {}; | ||
this.consumerBuildMeta = this.options.buildMeta || function () {}; | ||
this.fragmentOpcodeCompiler = new FragmentOpcodeCompiler['default'](); | ||
this.fragmentCompiler = new FragmentJavaScriptCompiler['default'](); | ||
this.hydrationOpcodeCompiler = new HydrationOpcodeCompiler['default'](); | ||
this.hydrationCompiler = new HydrationJavaScriptCompiler['default'](); | ||
this.fragmentOpcodeCompiler = new _fragmentOpcodeCompiler2.default(); | ||
this.fragmentCompiler = new _fragmentJavascriptCompiler2.default(); | ||
this.hydrationOpcodeCompiler = new _hydrationOpcodeCompiler2.default(); | ||
this.hydrationCompiler = new _hydrationJavascriptCompiler2.default(); | ||
this.templates = []; | ||
@@ -23,3 +42,3 @@ this.childTemplates = []; | ||
exports['default'] = TemplateCompiler; | ||
exports.default = TemplateCompiler; | ||
@@ -33,3 +52,3 @@ var dynamicNodes = { | ||
TemplateCompiler.prototype.compile = function (ast) { | ||
var templateVisitor = new TemplateVisitor['default'](); | ||
var templateVisitor = new _templateVisitor2.default(); | ||
templateVisitor.visit(ast); | ||
@@ -57,3 +76,3 @@ | ||
utils.processOpcodes(this, normalizedActions); | ||
_utils.processOpcodes(this, normalizedActions); | ||
@@ -104,3 +123,3 @@ return this.templates.pop(); | ||
var indent = quoting.repeat(' ', programDepth); | ||
var indent = _htmlbarsUtilQuoting.repeat(' ', programDepth); | ||
var options = { | ||
@@ -123,3 +142,3 @@ indent: indent + ' ' | ||
var statements = array_utils.map(hydrationPrograms.statements, function (s) { | ||
var statements = _htmlbarsUtilArrayUtils.map(hydrationPrograms.statements, function (s) { | ||
return indent + ' ' + JSON.stringify(s); | ||
@@ -130,3 +149,3 @@ }).join(',\n'); | ||
var templates = array_utils.map(this.childTemplates, function (_, index) { | ||
var templates = _htmlbarsUtilArrayUtils.map(this.childTemplates, function (_, index) { | ||
return 'child' + index; | ||
@@ -187,2 +206,4 @@ }).join(', '); | ||
this.fragmentOpcodeCompiler.setNamespace(namespace); | ||
}; | ||
}; | ||
module.exports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lbnRPcGNvZGVDb21waWxlci5tdXN0YWNoZShtdXN0YWNoZSwgaSwgbCwgcyk7XG4gIHRoaXMuaHlkcmF0aW9uT3Bjb2RlQ29tcGlsZXIubXVzdGFjaGUobXVzdGFjaGUsIGksIGwsIHMpO1xufTtcblxuVGVtcGxhdGVDb21waWxlci5wcm90b3R5cGUuc2V0TmFtZXNwYWNlID0gZnVuY3Rpb24obmFtZXNwYWNlKSB7XG4gIHRoaXMuZnJhZ21lbnRPcGNvZGVDb21waWxlci5zZXROYW1lc3BhY2UobmFtZXNwYWNlKTtcbn07XG4iXX0= |
@@ -1,3 +0,2 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
var push = Array.prototype.push; | ||
@@ -212,3 +211,3 @@ | ||
exports['default'] = TemplateVisitor; | ||
exports.default = TemplateVisitor; | ||
@@ -235,2 +234,4 @@ // Returns the index of `domNode` in the `nodes` array, skipping | ||
return -1; | ||
} | ||
} | ||
module.exports = exports.default; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLWNvbXBpbGVyL3RlbXBsYXRlLXZpc2l0b3IuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLElBQUksSUFBSSxHQUFHLEtBQUssQ0FBQyxTQUFTLENBQUMsSUFBSSxDQUFDOztBQUVoQyxTQUFTLEtBQUssR0FBRztBQUNmLE1BQUksQ0FBQyxVQUFVLEdBQUcsSUFBSSxDQUFDO0FBQ3ZCLE1BQUksQ0FBQyxRQUFRLEdBQUcsSUFBSSxDQUFDO0FBQ3JCLE1BQUksQ0FBQyxVQUFVLEdBQUcsSUFBSSxDQUFDO0FBQ3ZCLE1BQUksQ0FBQyxVQUFVLEdBQUcsSUFBSSxDQUFDO0FBQ3ZCLE1BQUksQ0FBQyxrQkFBa0IsR0FBRyxDQUFDLENBQUM7QUFDNUIsTUFBSSxDQUFDLGFBQWEsR0FBRyxDQUFDLENBQUM7QUF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ZnJhbWVTdGFjay5sZW5ndGggLSAxXTtcbn07XG5cblRlbXBsYXRlVmlzaXRvci5wcm90b3R5cGUucHVzaEZyYW1lID0gZnVuY3Rpb24oKSB7XG4gIHZhciBmcmFtZSA9IG5ldyBGcmFtZSgpO1xuICB0aGlzLmZyYW1lU3RhY2sucHVzaChmcmFtZSk7XG4gIHJldHVybiBmcmFtZTtcbn07XG5cblRlbXBsYXRlVmlzaXRvci5wcm90b3R5cGUucG9wRnJhbWUgPSBmdW5jdGlvbigpIHtcbiAgcmV0dXJuIHRoaXMuZnJhbWVTdGFjay5wb3AoKTtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IFRlbXBsYXRlVmlzaXRvcjtcblxuXG4vLyBSZXR1cm5zIHRoZSBpbmRleCBvZiBgZG9tTm9kZWAgaW4gdGhlIGBub2Rlc2AgYXJyYXksIHNraXBwaW5nXG4vLyBvdmVyIGFueSBub2RlcyB3aGljaCBkbyBub3QgcmVwcmVzZW50IERPTSBub2Rlcy5cbmZ1bmN0aW9uIGRvbUluZGV4T2Yobm9kZXMsIGRvbU5vZGUpIHtcbiAgdmFyIGluZGV4ID0gLTE7XG5cbiAgZm9yICh2YXIgaSA9IDA7IGkgPCBub2Rlcy5sZW5ndGg7IGkrKykge1xuICAgIHZhciBub2RlID0gbm9kZXNbaV07XG5cbiAgICBpZiAobm9kZS50eXBlICE9PSAnVGV4dE5vZGUnICYmIG5vZGUudHlwZSAhPT0gJ0VsZW1lbnROb2RlJykge1xuICAgICAgY29udGludWU7XG4gICAgfSBlbHNlIHtcbiAgICAgIGluZGV4Kys7XG4gICAgfVxuXG4gICAgaWYgKG5vZGUgPT09IGRvbU5vZGUpIHtcbiAgICAgIHJldHVybiBpbmRleDtcbiAgICB9XG4gIH1cblxuICByZXR1cm4gLTE7XG59XG4iXX0= |
@@ -1,3 +0,2 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
exports.processOpcodes = processOpcodes; | ||
@@ -15,2 +14,3 @@ | ||
} | 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XTtcbiAgICBpZiAocGFyYW1zKSB7XG4gICAgICBjb21waWxlclttZXRob2RdLmFwcGx5KGNvbXBpbGVyLCBwYXJhbXMpO1xuICAgIH0gZWxzZSB7XG4gICAgICBjb21waWxlclttZXRob2RdLmNhbGwoY29tcGlsZXIpO1xuICAgIH1cbiAgfVxufVxuIl19 |
@@ -1,23 +0,35 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
var hooks = require('./htmlbars-runtime/hooks'); | ||
var render = require('./htmlbars-runtime/render'); | ||
var morph_utils = require('../htmlbars-util/morph-utils'); | ||
var template_utils = require('../htmlbars-util/template-utils'); | ||
var expression_visitor = require('./htmlbars-runtime/expression-visitor'); | ||
var htmlbars_runtime__hooks = require('htmlbars-runtime/hooks'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
var _htmlbarsRuntimeHooks = require('./htmlbars-runtime/hooks'); | ||
var _htmlbarsRuntimeHooks2 = _interopRequireDefault(_htmlbarsRuntimeHooks); | ||
var _htmlbarsRuntimeRender = require('./htmlbars-runtime/render'); | ||
var _htmlbarsRuntimeRender2 = _interopRequireDefault(_htmlbarsRuntimeRender); | ||
var _htmlbarsUtilMorphUtils = require('../htmlbars-util/morph-utils'); | ||
var _htmlbarsUtilTemplateUtils = require('../htmlbars-util/template-utils'); | ||
var _htmlbarsRuntimeExpressionVisitor = require('./htmlbars-runtime/expression-visitor'); | ||
var _htmlbarsRuntimeHooks3 = require('htmlbars-runtime/hooks'); | ||
var internal = { | ||
blockFor: template_utils.blockFor, | ||
manualElement: render.manualElement, | ||
hostBlock: htmlbars_runtime__hooks.hostBlock, | ||
continueBlock: htmlbars_runtime__hooks.continueBlock, | ||
hostYieldWithShadowTemplate: htmlbars_runtime__hooks.hostYieldWithShadowTemplate, | ||
visitChildren: morph_utils.visitChildren, | ||
validateChildMorphs: expression_visitor.validateChildMorphs, | ||
clearMorph: template_utils.clearMorph | ||
blockFor: _htmlbarsUtilTemplateUtils.blockFor, | ||
manualElement: _htmlbarsRuntimeRender.manualElement, | ||
hostBlock: _htmlbarsRuntimeHooks3.hostBlock, | ||
continueBlock: _htmlbarsRuntimeHooks3.continueBlock, | ||
hostYieldWithShadowTemplate: _htmlbarsRuntimeHooks3.hostYieldWithShadowTemplate, | ||
visitChildren: _htmlbarsUtilMorphUtils.visitChildren, | ||
validateChildMorphs: _htmlbarsRuntimeExpressionVisitor.validateChildMorphs, | ||
clearMorph: _htmlbarsUtilTemplateUtils.clearMorph | ||
}; | ||
exports.hooks = hooks['default']; | ||
exports.render = render['default']; | ||
exports.internal = internal; | ||
exports.hooks = _htmlbarsRuntimeHooks2.default; | ||
exports.render = _htmlbarsRuntimeRender2.default; | ||
exports.internal = internal; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXJ1bnRpbWUuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztvQ0FBa0IsMEJBQTBCOzs7O3FDQUN6QiwyQkFBMkI7Ozs7c0NBRWhCLDhCQUE4Qjs7eUNBQ3ZCLGlDQUFpQzs7Z0RBQ2xDLHVDQUF1Qzs7cUNBS3BFLHdCQUF3Qjs7QUFHL0IsSUFBSSxRQUFRLEdBQUc7QUFDYixVQUFRLDZCQVZELFFBQVEsQUFVRztBQUNsQixlQUFhLHlCQWJOLGFBQWEsQUFhUTtBQUM1QixXQUFTLHlCQVRULFNBQVMsQUFTVztBQUNwQixlQUFhLHlCQVRiLGFBQWEsQUFTZTtBQUM1Qiw2QkFBMkIseUJBVDNCLDJCQUEyQixBQVM2QjtBQUN4RCxlQUFhLDBCQWhCTixhQUFhLEFBZ0JRO0FBQzVCLHFCQUFtQixvQ0FmWixtQkFBbUIsQUFlYztBQUN4QyxZQUFVLDZCQWpCTyxVQUFVLEFBaUJMO0NBQ3ZCLENBQUM7O1FBR0EsS0FBSztRQUNMLE1BQU07UUFDTixRQUFRLEdBQVIsUUFBUSI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W9ycGg6IGNsZWFyTW9ycGhcbn07XG5cbmV4cG9ydCB7XG4gIGhvb2tzLFxuICByZW5kZXIsXG4gIGludGVybmFsXG59O1xuIl19 |
@@ -1,6 +0,36 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
var object_utils = require('../htmlbars-util/object-utils'); | ||
var morph_utils = require('../htmlbars-util/morph-utils'); | ||
var _htmlbarsUtilObjectUtils = require("../htmlbars-util/object-utils"); | ||
var _htmlbarsUtilMorphUtils = require("../htmlbars-util/morph-utils"); | ||
/** | ||
Node classification: | ||
# Primary Statement Nodes: | ||
These nodes are responsible for a render node that represents a morph-range. | ||
* block | ||
* inline | ||
* content | ||
* element | ||
* component | ||
# Leaf Statement Nodes: | ||
This node is responsible for a render node that represents a morph-attr. | ||
* attribute | ||
# Expression Nodes: | ||
These nodes are not directly responsible for any part of the DOM, but are | ||
eventually passed to a Statement Node. | ||
* get | ||
* subexpr | ||
* concat | ||
*/ | ||
var base = { | ||
@@ -79,3 +109,3 @@ acceptExpression: function (node, env, scope) { | ||
morph_utils.linkParams(env, scope, morph, path, params, hash); | ||
_htmlbarsUtilMorphUtils.linkParams(env, scope, morph, path, params, hash); | ||
return [params, hash]; | ||
@@ -85,3 +115,3 @@ } | ||
var AlwaysDirtyVisitor = object_utils.merge(Object.create(base), { | ||
var AlwaysDirtyVisitor = _htmlbarsUtilObjectUtils.merge(Object.create(base), { | ||
// [ 'block', path, params, hash, templateId, inverseId ] | ||
@@ -120,3 +150,3 @@ block: function (node, morph, env, scope, template, visitor) { | ||
if (morph.linkedResult) { | ||
morph_utils.linkParams(env, scope, morph, "@content-helper", [morph.linkedResult], null); | ||
_htmlbarsUtilMorphUtils.linkParams(env, scope, morph, "@content-helper", [morph.linkedResult], null); | ||
} | ||
@@ -133,3 +163,3 @@ return; | ||
morph_utils.linkParams(env, scope, morph, "@range", params, null); | ||
_htmlbarsUtilMorphUtils.linkParams(env, scope, morph, "@range", params, null); | ||
env.hooks.range(morph, env, scope, path, params[0], visitor); | ||
@@ -182,3 +212,4 @@ }, | ||
exports['default'] = object_utils.merge(Object.create(base), { | ||
exports.AlwaysDirtyVisitor = AlwaysDirtyVisitor; | ||
exports.default = _htmlbarsUtilObjectUtils.merge(Object.create(base), { | ||
// [ 'block', path, params, hash, templateId, inverseId ] | ||
@@ -247,3 +278,3 @@ block: function (node, morph, env, scope, template, visitor) { | ||
} | ||
morph_utils.validateChildMorphs(env, morph, visitor); | ||
_htmlbarsUtilMorphUtils.validateChildMorphs(env, morph, visitor); | ||
} | ||
@@ -255,3 +286,2 @@ } | ||
} | ||
exports.AlwaysDirtyVisitor = AlwaysDirtyVisitor; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXJ1bnRpbWUvZXhwcmVzc2lvbi12aXNpdG9yLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O3VDQUFzQiwrQkFBK0I7O3NDQUNMLDhCQUE4Qjs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQStCOUUsSUFBSSxJQUFJLEdBQUc7QUFDVCxrQkFBZ0IsRUFBRSxVQUFTLElBQUksRUFBRSxHQUFHLEVBQUUsS0FBSyxFQUFFO0FBQzNDLFFBQUksR0FBRyxHQUFHLEVBQUUsS0FBSyxFQUFFLElBQUksRUFBRSxDQUFDOzs7O0FBSTFCLFFBQUksT0FBTyxJQUFJLEtBQUssUUFBUSxJQUFJLElBQUksS0FBSyxJQUFJLEVBQUU7QUFDN0MsU0FBRyxDQUFDLEtBQUssR0FBRyxJQUFJLENBQUM7QUFDakIsYUFBTyxHQUFHLENBQUM7S0FDWjs7QUFFRCxZQUFPLElBQUksQ0FBQyxDQUFDLENBQUM7O0FBRVosV0FBSyxPQUFPO0FBQUUsV0FBRyxDQUFDLEtBQUssR0FBRyxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUMsQUFBQyxNQUFNO0FBQUE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dHRyaWJ1dGVzOiBmdW5jdGlvbihub2RlLCBtb3JwaCwgZW52LCBzY29wZSwgcGFyZW50TW9ycGgsIHZpc2l0b3IpIHtcbiAgICBBbHdheXNEaXJ0eVZpc2l0b3IuYXR0cmlidXRlcyhub2RlLCBtb3JwaCwgZW52LCBzY29wZSwgcGFyZW50TW9ycGgsIHZpc2l0b3IpO1xuICB9XG59KTtcblxuZnVuY3Rpb24gZGlydHlDaGVjayhfZW52LCBtb3JwaCwgdmlzaXRvciwgY2FsbGJhY2spIHtcbiAgdmFyIGlzRGlydHkgPSBtb3JwaC5pc0RpcnR5O1xuICB2YXIgaXNTdWJ0cmVlRGlydHkgPSBtb3JwaC5pc1N1YnRyZWVEaXJ0eTtcbiAgdmFyIGVudiA9IF9lbnY7XG5cbiAgaWYgKGlzU3VidHJlZURpcnR5KSB7XG4gICAgdmlzaXRvciA9IEFsd2F5c0RpcnR5VmlzaXRvcjtcbiAgfVxuXG4gIGlmIChpc0RpcnR5IHx8IGlzU3VidHJlZURpcnR5KSB7XG4gICAgY2FsbGJhY2sodmlzaXRvcik7XG4gIH0gZWxzZSB7XG4gICAgaWYgKG1vcnBoLmJ1aWxkQ2hpbGRFbnYpIHtcbiAgICAgIGVudiA9IG1vcnBoLmJ1aWxkQ2hpbGRFbnYobW9ycGguc3RhdGUsIGVudik7XG4gICAgfVxuICAgIHZhbGlkYXRlQ2hpbGRNb3JwaHMoZW52LCBtb3JwaCwgdmlzaXRvcik7XG4gIH1cbn1cblxuZnVuY3Rpb24gaXNIZWxwZXIoZW52LCBzY29wZSwgcGF0aCkge1xuICByZXR1cm4gKGVudi5ob29rcy5rZXl3b3Jkc1twYXRoXSAhPT0gdW5kZWZpbmVkKSB8fCBlbnYuaG9va3MuaGFzSGVscGVyKGVudiwgc2NvcGUsIHBhdGgpO1xufVxuIl19 |
@@ -1,5 +0,9 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
var MorphBase = require('../morph-range'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
var _morphRange = require("../morph-range"); | ||
var _morphRange2 = _interopRequireDefault(_morphRange); | ||
var guid = 1; | ||
@@ -46,6 +50,8 @@ | ||
var prototype = HTMLBarsMorph.prototype = Object.create(MorphBase['default'].prototype); | ||
var prototype = HTMLBarsMorph.prototype = Object.create(_morphRange2.default.prototype); | ||
prototype.constructor = HTMLBarsMorph; | ||
prototype.super$constructor = MorphBase['default']; | ||
prototype.super$constructor = _morphRange2.default; | ||
exports['default'] = HTMLBarsMorph; | ||
exports.default = HTMLBarsMorph; | ||
module.exports = exports.default; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXJ1bnRpbWUvbW9ycGguanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OzswQkFBc0IsZ0JBQWdCOzs7O0FBRXRDLElBQUksSUFBSSxHQUFHLENBQUMsQ0FBQzs7QUFFYixTQUFTLGFBQWEsQ0FBQyxTQUFTLEVBQUUsaUJBQWlCLEVBQUU7QUFDbkQsTUFBSSxDQUFDLGlCQUFpQixDQUFDLFNBQVMsRUFBRSxpQkFBaUIsQ0FBQyxDQUFDOztBQUVyRCxNQUFJLENBQUMsS0FBSyxHQUFHLEVBQUUsQ0FBQztBQUNoQixNQUFJLENBQUMsU0FBUyxHQUFHLElBQUksQ0FBQztBQUN0QixNQUFJLENBQUMsT0FBTyxHQUFHLEtBQUssQ0FBQztBQUNyQixNQUFJLENBQUMsY0FBYyxHQUFHLEtBQUssQ0FBQztBQUM1QixNQUFJLENBQUMsV0FBVyxHQUFHLElBQUksQ0FBQztBQUN4QixNQUFJLENBQUMsVUFBVSxHQUFHLElBQUksQ0FBQztBQUN2QixNQUFJLENBQUMsU0FBUyxHQUFHLElBQUksQ0FBQztBQUN0QixNQUFJLENBQUMsYUFBYSxHQUFHLElBQUksQ0FBQztBQUMxQixNQUFJLENBQUMsU0FBUyxHQUF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RvdHlwZS5zdXBlciRjb25zdHJ1Y3RvciA9IE1vcnBoQmFzZTtcblxuZXhwb3J0IGRlZmF1bHQgSFRNTEJhcnNNb3JwaDtcbiJdfQ== |
@@ -1,3 +0,3 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
exports.default = render; | ||
exports.manualElement = manualElement; | ||
@@ -8,14 +8,24 @@ exports.attachAttributes = attachAttributes; | ||
var array_utils = require('../htmlbars-util/array-utils'); | ||
var morph_utils = require('../htmlbars-util/morph-utils'); | ||
var ExpressionVisitor = require('./expression-visitor'); | ||
var Morph = require('./morph'); | ||
var template_utils = require('../htmlbars-util/template-utils'); | ||
var voidMap = require('../htmlbars-util/void-tag-names'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
var _htmlbarsUtilArrayUtils = require("../htmlbars-util/array-utils"); | ||
var _htmlbarsUtilMorphUtils = require("../htmlbars-util/morph-utils"); | ||
exports['default'] = render; | ||
var _expressionVisitor = require("./expression-visitor"); | ||
var _expressionVisitor2 = _interopRequireDefault(_expressionVisitor); | ||
var _morph = require("./morph"); | ||
var _morph2 = _interopRequireDefault(_morph); | ||
var _htmlbarsUtilTemplateUtils = require("../htmlbars-util/template-utils"); | ||
var _htmlbarsUtilVoidTagNames = require("../htmlbars-util/void-tag-names"); | ||
var _htmlbarsUtilVoidTagNames2 = _interopRequireDefault(_htmlbarsUtilVoidTagNames); | ||
var svgNamespace = "http://www.w3.org/2000/svg"; | ||
function render(template, env, scope, options) { | ||
@@ -88,4 +98,4 @@ var dom = env.dom; | ||
if (rootNode.childNodes) { | ||
morph_utils.visitChildren(rootNode.childNodes, function (node) { | ||
template_utils.clearMorph(node, env, true); | ||
_htmlbarsUtilMorphUtils.visitChildren(rootNode.childNodes, function (node) { | ||
_htmlbarsUtilTemplateUtils.clearMorph(node, env, true); | ||
}); | ||
@@ -97,2 +107,3 @@ } | ||
}; | ||
function manualElement(tagName, attributes) { | ||
@@ -128,3 +139,3 @@ var statements = []; | ||
if (!voidMap['default'][tagName]) { | ||
if (!_htmlbarsUtilVoidTagNames2.default[tagName]) { | ||
var el2 = dom.createComment(""); | ||
@@ -211,3 +222,3 @@ dom.appendChild(el1, el2); | ||
RenderResult.prototype.initializeNodes = function (ownerNode) { | ||
array_utils.forEach(this.root.childNodes, function (node) { | ||
_htmlbarsUtilArrayUtils.forEach(this.root.childNodes, function (node) { | ||
initializeNode(node, ownerNode); | ||
@@ -220,3 +231,3 @@ }); | ||
this.root.rendered = true; | ||
this.populateNodes(ExpressionVisitor.AlwaysDirtyVisitor); | ||
this.populateNodes(_expressionVisitor.AlwaysDirtyVisitor); | ||
@@ -229,3 +240,3 @@ if (this.shouldSetContent && this.root.setContent) { | ||
RenderResult.prototype.dirty = function () { | ||
morph_utils.visitChildren([this.root], function (node) { | ||
_htmlbarsUtilMorphUtils.visitChildren([this.root], function (node) { | ||
node.isDirty = true; | ||
@@ -236,7 +247,7 @@ }); | ||
RenderResult.prototype.revalidate = function (env, self, blockArguments, scope) { | ||
this.revalidateWith(env, scope, self, blockArguments, ExpressionVisitor['default']); | ||
this.revalidateWith(env, scope, self, blockArguments, _expressionVisitor2.default); | ||
}; | ||
RenderResult.prototype.rerender = function (env, self, blockArguments, scope) { | ||
this.revalidateWith(env, scope, self, blockArguments, ExpressionVisitor.AlwaysDirtyVisitor); | ||
this.revalidateWith(env, scope, self, blockArguments, _expressionVisitor.AlwaysDirtyVisitor); | ||
}; | ||
@@ -265,3 +276,3 @@ | ||
var rootNode = this.root; | ||
template_utils.clearMorph(rootNode, this.env, true); | ||
_htmlbarsUtilTemplateUtils.clearMorph(rootNode, this.env, true); | ||
}; | ||
@@ -343,4 +354,5 @@ | ||
} | ||
function createChildMorph(dom, parentMorph, contextualElement) { | ||
var morph = Morph['default'].empty(dom, contextualElement || parentMorph.contextualElement); | ||
var morph = _morph2.default.empty(dom, contextualElement || parentMorph.contextualElement); | ||
initializeNode(morph, parentMorph.ownerNode); | ||
@@ -370,2 +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IH0gZWxzZSBpZiAoIWZyYWdtZW50KSB7XG4gICAgZnJhZ21lbnQgPSB0ZW1wbGF0ZS5idWlsZEZyYWdtZW50KGRvbSk7XG4gIH1cblxuICByZXR1cm4gZnJhZ21lbnQ7XG59XG4iXX0= |
@@ -1,9 +0,25 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
var Walker = require('./htmlbars-syntax/walker'); | ||
var builders = require('./htmlbars-syntax/builders'); | ||
var parse = require('./htmlbars-syntax/parser'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
exports.Walker = Walker['default']; | ||
exports.builders = builders['default']; | ||
exports.parse = parse['default']; | ||
var _htmlbarsSyntaxBuilders = require("./htmlbars-syntax/builders"); | ||
var _htmlbarsSyntaxBuilders2 = _interopRequireDefault(_htmlbarsSyntaxBuilders); | ||
var _htmlbarsSyntaxParser = require("./htmlbars-syntax/parser"); | ||
var _htmlbarsSyntaxParser2 = _interopRequireDefault(_htmlbarsSyntaxParser); | ||
var _htmlbarsSyntaxTraversalTraverse = require("./htmlbars-syntax/traversal/traverse"); | ||
var _htmlbarsSyntaxTraversalTraverse2 = _interopRequireDefault(_htmlbarsSyntaxTraversalTraverse); | ||
var _htmlbarsSyntaxTraversalWalker = require("./htmlbars-syntax/traversal/walker"); | ||
var _htmlbarsSyntaxTraversalWalker2 = _interopRequireDefault(_htmlbarsSyntaxTraversalWalker); | ||
exports.builders = _htmlbarsSyntaxBuilders2.default; | ||
exports.parse = _htmlbarsSyntaxParser2.default; | ||
exports.traverse = _htmlbarsSyntaxTraversalTraverse2.default; | ||
exports.Walker = _htmlbarsSyntaxTraversalWalker2.default; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXN5bnRheC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O3NDQUFxQiw0QkFBNEI7Ozs7b0NBQy9CLDBCQUEwQjs7OzsrQ0FDdkIsc0NBQXNDOzs7OzZDQUN4QyxvQ0FBb0M7Ozs7UUFHckQsUUFBUTtRQUNSLEtBQUs7UUFDTCxRQUFRO1FBQ1IsTUFBTSIsImZpbGUiOiJodG1sYmFycy1zeW50YXguanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgYnVpbGRlcnMgZnJvbSBcIi4vaHRtbGJhcnMtc3ludGF4L2J1aWxkZXJzXCI7XG5pbXBvcnQgcGFyc2UgZnJvbSBcIi4vaHRtbGJhcnMtc3ludGF4L3BhcnNlclwiO1xuaW1wb3J0IHRyYXZlcnNlIGZyb20gXCIuL2h0bWxiYXJzLXN5bnRheC90cmF2ZXJzYWwvdHJhdmVyc2VcIjtcbmltcG9ydCBXYWxrZXIgZnJvbSBcIi4vaHRtbGJhcnMtc3ludGF4L3RyYXZlcnNhbC93YWxrZXJcIjtcblxuZXhwb3J0IHtcbiAgYnVpbGRlcnMsXG4gIHBhcnNlLFxuICB0cmF2ZXJzZSxcbiAgV2Fsa2VyXG59O1xuIl19 |
@@ -1,3 +0,2 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
exports.buildMustache = buildMustache; | ||
@@ -23,2 +22,3 @@ exports.buildBlock = buildBlock; | ||
exports.buildProgram = buildProgram; | ||
// Statements | ||
@@ -28,3 +28,3 @@ function buildMustache(path, params, hash, raw, loc) { | ||
type: "MustacheStatement", | ||
path: path, | ||
path: buildPath(path), | ||
params: params || [], | ||
@@ -40,3 +40,3 @@ hash: hash || buildHash([]), | ||
type: "BlockStatement", | ||
path: path, | ||
path: buildPath(path), | ||
params: params || [], | ||
@@ -53,3 +53,3 @@ hash: hash || buildHash([]), | ||
type: "ElementModifierStatement", | ||
path: path, | ||
path: buildPath(path), | ||
params: params || [], | ||
@@ -129,3 +129,3 @@ hash: hash || buildHash([]), | ||
type: "SubExpression", | ||
path: path, | ||
path: buildPath(path), | ||
params: params || [], | ||
@@ -137,7 +137,11 @@ hash: hash || buildHash([]) | ||
function buildPath(original) { | ||
return { | ||
type: "PathExpression", | ||
original: original, | ||
parts: original.split(".") | ||
}; | ||
if (typeof original === "string") { | ||
return { | ||
type: "PathExpression", | ||
original: original, | ||
parts: original.split(".") | ||
}; | ||
} else { | ||
return original; | ||
} | ||
} | ||
@@ -244,3 +248,3 @@ | ||
exports['default'] = { | ||
exports.default = { | ||
mustache: buildMustache, | ||
@@ -268,2 +272,3 @@ block: buildBlock, | ||
pos: buildPosition | ||
}; | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXN5bnRheC9idWlsZGVycy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO1FBRWdCLGFBQWEsR0FBYixhQUFhO1FBV2IsVUFBVSxHQUFWLFVBQVU7UUFZVixvQkFBb0IsR0FBcEIsb0JBQW9CO1FBVXBCLFlBQVksR0FBWixZQUFZO1FBVVosWUFBWSxHQUFaLFlBQVk7UUFPWixXQUFXLEdBQVgsV0FBVztRQVNYLFlBQVksR0FBWixZQUFZO1FBV1osY0FBYyxHQUFkLGNBQWM7UUFVZCxTQUFTLEdBQVQsU0FBUztRQVFULFNBQVMsR0FBVCxTQUFTO1FBVVQsVUFBVSxHQUFWLFVBQVU7UUFTVixTQUFTLEdBQVQsU0FBUztRQVlULFdBQVcsR0FBWCxXQUFXO1FBUVgsWUFBWSxHQUFaLFlBQVk7UUFRWixXQUFXLEdBQVgsV0FBVztRQVFYLFNBQVMsR0FBVCxTQUFTO1FBUVQsY0FBYyxHQUFkLGNBQWM7UUFVZCxTQUFTLEdBQVQsU0FBUztRQU9ULFNBQVMsR0FBVCxTQUFTO1FBUVQsWUFBWSxHQUFaLFlBQVk7OztBQWhMckIsU0FBUyxhQUFhLENBQUMsSUFBSSxFQUFFLE1BQU0sRUFBRSxJQUFJLEVBQUUsR0FBRyxFQUFFLEdBQUcsRUFBRTtBQUMxRCxTQUFPO0FBQ0wsUUFBSSxFQU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I6IGJ1aWxkTnVtYmVyLFxuICB1bmRlZmluZWQ6IGJ1aWxkVW5kZWZpbmVkLFxuICBudWxsOiBidWlsZE51bGwsXG4gIGNvbmNhdDogYnVpbGRDb25jYXQsXG4gIGhhc2g6IGJ1aWxkSGFzaCxcbiAgcGFpcjogYnVpbGRQYWlyLFxuICBwcm9ncmFtOiBidWlsZFByb2dyYW0sXG4gIGxvYzogYnVpbGRMb2MsXG4gIHBvczogYnVpbGRQb3NpdGlvblxufTtcbiJdfQ== |
@@ -1,3 +0,2 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
var AST = { | ||
@@ -150,2 +149,4 @@ Program: function (statements, blockParams, strip, locInfo) { | ||
// must modify the object to operate properly. | ||
exports['default'] = AST; | ||
exports.default = AST; | ||
module.exports = exports.default; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXN5bnRheC9oYW5kbGViYXJzL2NvbXBpbGVyL2FzdC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsSUFBSSxHQUFHLEdBQUc7QUFDUixTQUFPLEVBQUUsVUFBUyxVQUFVLEVBQUUsV0FBVyxFQUFFLEtBQUssRUFBRSxPQUFPLEVBQUU7QUFDekQsUUFBSSxDQUFDLEdBQUcsR0FBRyxPQUFPLENBQUM7QUFDbkIsUUFBSSxDQUFDLElBQUksR0FBRyxTQUFTLENBQUM7QUFDdEIsUUFBSSxDQUFDLElBQUksR0FBRyxVQUFVLENBQUM7O0FBRXZCLFFBQUksQ0FBQyxXQUFXLEdBQUcsV0FBVyxDQUFDO0FBQy9CLFFBQUksQ0FBQyxLQUFLLEdBQUcsS0FBSyxDQUFDO0dBQ3BCOztBQUVELG1CQUFpQixFQUFFLFVBQVMsSUFBSSxFQUFFLE1BQU0sRUFBRSxJQUFJLEVBQUUsT0FBTyxFQUFFLEtBQUssRUFBRSxPQUFPLEVBQUU7QUFDdkUsUUFBSS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icgfHwgbm9kZS5wYXJhbXMubGVuZ3RoIHx8IG5vZGUuaGFzaCk7XG4gICAgfSxcblxuICAgIHNjb3BlZElkOiBmdW5jdGlvbihwYXRoKSB7XG4gICAgICByZXR1cm4gKC9eXFwufHRoaXNcXGIvKS50ZXN0KHBhdGgub3JpZ2luYWwpO1xuICAgIH0sXG5cbiAgICAvLyBhbiBJRCBpcyBzaW1wbGUgaWYgaXQgb25seSBoYXMgb25lIHBhcnQsIGFuZCB0aGF0IHBhcnQgaXMgbm90XG4gICAgLy8gYC4uYCBvciBgdGhpc2AuXG4gICAgc2ltcGxlSWQ6IGZ1bmN0aW9uKHBhdGgpIHtcbiAgICAgIHJldHVybiBwYXRoLnBhcnRzLmxlbmd0aCA9PT0gMSAmJiAhQVNULmhlbHBlcnMuc2NvcGVkSWQocGF0aCkgJiYgIXBhdGguZGVwdGg7XG4gICAgfVxuICB9XG59O1xuXG5cbi8vIE11c3QgYmUgZXhwb3J0ZWQgYXMgYW4gb2JqZWN0IHJhdGhlciB0aGFuIHRoZSByb290IG9mIHRoZSBtb2R1bGUgYXMgdGhlIGppc29uIGxleGVyXG4vLyBtdXN0IG1vZGlmeSB0aGUgb2JqZWN0IHRvIG9wZXJhdGUgcHJvcGVybHkuXG5leHBvcnQgZGVmYXVsdCBBU1Q7XG4iXX0= |
@@ -1,15 +0,31 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
exports.parse = parse; | ||
var parser = require('./parser'); | ||
var AST = require('./ast'); | ||
var WhitespaceControl = require('./whitespace-control'); | ||
var Helpers = require('./helpers'); | ||
var utils = require('../utils'); | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
var _parser = require('./parser'); | ||
var _parser2 = _interopRequireDefault(_parser); | ||
var _ast = require('./ast'); | ||
var _ast2 = _interopRequireDefault(_ast); | ||
var _whitespaceControl = require('./whitespace-control'); | ||
var _whitespaceControl2 = _interopRequireDefault(_whitespaceControl); | ||
var _helpers = require('./helpers'); | ||
var Helpers = _interopRequireWildcard(_helpers); | ||
var _utils = require('../utils'); | ||
exports.parser = _parser2.default; | ||
var yy = {}; | ||
utils.extend(yy, Helpers, AST['default']); | ||
_utils.extend(yy, Helpers, _ast2.default); | ||
function parse(input, options) { | ||
@@ -21,3 +37,3 @@ // Just return if an already-compiled AST was passed in. | ||
parser['default'].yy = yy; | ||
_parser2.default.yy = yy; | ||
@@ -29,6 +45,5 @@ // Altering the shared object here, but this is ok as parser is a sync operation | ||
var strip = new WhitespaceControl['default'](); | ||
return strip.accept(parser['default'].parse(input)); | ||
var strip = new _whitespaceControl2.default(); | ||
return strip.accept(_parser2.default.parse(input)); | ||
} | ||
exports.parser = parser['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXN5bnRheC9oYW5kbGViYXJzL2NvbXBpbGVyL2Jhc2UuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtRQVdnQixLQUFLLEdBQUwsS0FBSzs7Ozs7O3NCQVhGLFVBQVU7Ozs7bUJBQ2IsT0FBTzs7OztpQ0FDTyxzQkFBc0I7Ozs7dUJBQzNCLFdBQVc7O0lBQXhCLE9BQU87O3FCQUNJLFVBQVU7O1FBRXhCLE1BQU07O0FBRWYsSUFBSSxFQUFFLEdBQUcsRUFBRSxDQUFDO0FBQ1osT0FMUyxNQUFNLENBS1IsRUFBRSxFQUFFLE9BQU8sZ0JBQU0sQ0FBQzs7QUFFbEIsU0FBUyxLQUFLLENBQUMsS0FBSyxFQUFFLE9BQU8sRUFBRTs7QUFFcEMsTUFBSSxLQUFLLENBQUMsSUFBSSxLQUFLLFNBQVMsRUFBRTtBQUFFLFdBQU8sS0F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EFsdGVyaW5nIHRoZSBzaGFyZWQgb2JqZWN0IGhlcmUsIGJ1dCB0aGlzIGlzIG9rIGFzIHBhcnNlciBpcyBhIHN5bmMgb3BlcmF0aW9uXG4gIHl5LmxvY0luZm8gPSBmdW5jdGlvbihsb2NJbmZvKSB7XG4gICAgcmV0dXJuIG5ldyB5eS5Tb3VyY2VMb2NhdGlvbihvcHRpb25zICYmIG9wdGlvbnMuc3JjTmFtZSwgbG9jSW5mbyk7XG4gIH07XG5cbiAgbGV0IHN0cmlwID0gbmV3IFdoaXRlc3BhY2VDb250cm9sKCk7XG4gIHJldHVybiBzdHJpcC5hY2NlcHQocGFyc2VyLnBhcnNlKGlucHV0KSk7XG59XG4iXX0= |
@@ -1,3 +0,2 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
exports.SourceLocation = SourceLocation; | ||
@@ -12,5 +11,7 @@ exports.id = id; | ||
var Exception = require('../exception'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
var _exception = require('../exception'); | ||
var _exception2 = _interopRequireDefault(_exception); | ||
@@ -66,3 +67,3 @@ function SourceLocation(source, locInfo) { | ||
if (dig.length > 0) { | ||
throw new Exception['default']('Invalid path: ' + original, { loc: locInfo }); | ||
throw new _exception2.default('Invalid path: ' + original, { loc: locInfo }); | ||
} else if (part === '..') { | ||
@@ -92,3 +93,3 @@ depth++; | ||
throw new Exception['default'](openRawBlock.path.original + ' doesn\'t match ' + close, errorNode); | ||
throw new _exception2.default(openRawBlock.path.original + ' doesn\'t match ' + close, errorNode); | ||
} | ||
@@ -107,3 +108,3 @@ | ||
throw new Exception['default'](openBlock.path.original + ' doesn\'t match ' + close.path.original, errorNode); | ||
throw new _exception2.default(openBlock.path.original + ' doesn\'t match ' + close.path.original, errorNode); | ||
} | ||
@@ -132,2 +133,3 @@ | ||
return new this.BlockStatement(openBlock.path, openBlock.params, openBlock.hash, program, inverse, openBlock.strip, inverseStrip, close && close.strip, this.locInfo(locIn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cbiAgaWYgKGludmVyc2VBbmRQcm9ncmFtKSB7XG4gICAgaWYgKGludmVyc2VBbmRQcm9ncmFtLmNoYWluKSB7XG4gICAgICBpbnZlcnNlQW5kUHJvZ3JhbS5wcm9ncmFtLmJvZHlbMF0uY2xvc2VTdHJpcCA9IGNsb3NlLnN0cmlwO1xuICAgIH1cblxuICAgIGludmVyc2VTdHJpcCA9IGludmVyc2VBbmRQcm9ncmFtLnN0cmlwO1xuICAgIGludmVyc2UgPSBpbnZlcnNlQW5kUHJvZ3JhbS5wcm9ncmFtO1xuICB9XG5cbiAgaWYgKGludmVydGVkKSB7XG4gICAgaW52ZXJ0ZWQgPSBpbnZlcnNlO1xuICAgIGludmVyc2UgPSBwcm9ncmFtO1xuICAgIHByb2dyYW0gPSBpbnZlcnRlZDtcbiAgfVxuXG4gIHJldHVybiBuZXcgdGhpcy5CbG9ja1N0YXRlbWVudChcbiAgICAgIG9wZW5CbG9jay5wYXRoLCBvcGVuQmxvY2sucGFyYW1zLCBvcGVuQmxvY2suaGFzaCxcbiAgICAgIHByb2dyYW0sIGludmVyc2UsXG4gICAgICBvcGVuQmxvY2suc3RyaXAsIGludmVyc2VTdHJpcCwgY2xvc2UgJiYgY2xvc2Uuc3RyaXAsXG4gICAgICB0aGlzLmxvY0luZm8obG9jSW5mbykpO1xufVxuIl19 |
@@ -1,6 +0,13 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
var Exception = require('../exception'); | ||
var AST = require('./ast'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
var _exception = require('../exception'); | ||
var _exception2 = _interopRequireDefault(_exception); | ||
var _ast = require('./ast'); | ||
var _ast2 = _interopRequireDefault(_ast); | ||
function Visitor() { | ||
@@ -19,4 +26,4 @@ this.parents = []; | ||
// Hacky sanity check: | ||
if (value && (!value.type || !AST['default'][value.type])) { | ||
throw new Exception['default']('Unexpected node type "' + value.type + '" found when accepting ' + name + ' on ' + node.type); | ||
if (value && (!value.type || !_ast2.default[value.type])) { | ||
throw new _exception2.default('Unexpected node type "' + value.type + '" found when accepting ' + name + ' on ' + node.type); | ||
} | ||
@@ -33,3 +40,3 @@ node[name] = value; | ||
if (!node[name]) { | ||
throw new Exception['default'](node.type + ' requires ' + name); | ||
throw new _exception2.default(node.type + ' requires ' + name); | ||
} | ||
@@ -123,3 +130,5 @@ }, | ||
exports['default'] = Visitor; | ||
/* content */ /* comment */ /* path */ /* string */ /* number */ /* bool */ /* literal */ /* literal */ | ||
exports.default = Visitor; | ||
module.exports = exports.default; | ||
/* content */ /* comment */ /* path */ /* string */ /* number */ /* bool */ /* literal */ /* literal */ | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXN5bnRheC9oYW5kbGViYXJzL2NvbXBpbGVyL3Zpc2l0b3IuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozt5QkFBc0IsY0FBYzs7OzttQkFDcEIsT0FBTzs7OztBQUV2QixTQUFTLE9BQU8sR0FBRztBQUNqQixNQUFJLENBQUMsT0FBTyxHQUFHLEVBQUUsQ0FBQztDQUNuQjs7QUFFRCxPQUFPLENBQUMsU0FBUyxHQUFHO0FBQ2xCLGFBQVcsRUFBRSxPQUFPO0FBQ3BCLFVBQVEsRUFBRSxLQUFLOzs7QUFHZixXQUFTLEVBQUUsVUFBUyxJQUFJLEVBQUUsSUFBSSxFQUFFO0FBQzlCLFFBQUksS0FBSyxHQUFHLElBQUksQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUM7QUFDcEMsUUFBSSxJQUFJLENBQUMsUUFBUSxFQUFFOztBQUVqQixVQUFJLEtBQUssS0FBSyxDQUFDLEtBQUssQ0FBQyxJQUFJLElBQUksQ0FBQyxjQUFJLEtBQUssQ0FBQyxJQUFJLENBQUMsQ0FBQSxBQUFDLEVBQUU7QUFDOUMsY0FBTSx3Qk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biAgfVxufTtcblxuZXhwb3J0IGRlZmF1bHQgVmlzaXRvcjtcbiJdfQ== |
@@ -1,7 +0,11 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
var Visitor = require('./visitor'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
var _visitor = require('./visitor'); | ||
var _visitor2 = _interopRequireDefault(_visitor); | ||
function WhitespaceControl() {} | ||
WhitespaceControl.prototype = new Visitor['default'](); | ||
WhitespaceControl.prototype = new _visitor2.default(); | ||
@@ -205,2 +209,4 @@ WhitespaceControl.prototype.Program = function (program) { | ||
exports['default'] = WhitespaceControl; | ||
exports.default = WhitespaceControl; | ||
module.exports = exports.default; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXN5bnRheC9oYW5kbGViYXJzL2NvbXBpbGVyL3doaXRlc3BhY2UtY29udHJvbC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O3VCQUFvQixXQUFXOzs7O0FBRS9CLFNBQVMsaUJBQWlCLEdBQUcsRUFDNUI7QUFDRCxpQkFBaUIsQ0FBQyxTQUFTLEdBQUcsdUJBQWEsQ0FBQzs7QUFFNUMsaUJBQWlCLENBQUMsU0FBUyxDQUFDLE9BQU8sR0FBRyxVQUFTLE9BQU8sRUFBRTtBQUN0RCxNQUFJLE1BQU0sR0FBRyxDQUFDLElBQUksQ0FBQyxVQUFVLENBQUM7QUFDOUIsTUFBSSxDQUFDLFVBQVUsR0FBRyxJQUFJLENBQUM7O0FBRXZCLE1BQUksSUFBSSxHQUFHLE9BQU8sQ0FBQyxJQUFJLENBQUM7QUFDeEIsT0FBSyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxHQUFHLElBQUksQ0FBQyxNQUFNLEVBQUUsQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEVBQUUsRUFBRTtBQUMzQyxRQUFJ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XG4gIHJldHVybiBjdXJyZW50LmxlZnRTdHJpcHBlZDtcbn1cblxuZXhwb3J0IGRlZmF1bHQgV2hpdGVzcGFjZUNvbnRyb2w7XG4iXX0= |
@@ -1,4 +0,3 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
var errorProps = ['description', 'fileName', 'lineNumber', 'message', 'name', 'number', 'stack']; | ||
@@ -36,2 +35,4 @@ | ||
exports['default'] = Exception; | ||
exports.default = Exception; | ||
module.exports = exports.default; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXN5bnRheC9oYW5kbGViYXJzL2V4Y2VwdGlvbi5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUNBLElBQU0sVUFBVSxHQUFHLENBQUMsYUFBYSxFQUFFLFVBQVUsRUFBRSxZQUFZLEVBQUUsU0FBUyxFQUFFLE1BQU0sRUFBRSxRQUFRLEVBQUUsT0FBTyxDQUFDLENBQUM7O0FBRW5HLFNBQVMsU0FBUyxDQUFDLE9BQU8sRUFBRSxJQUFJLEVBQUU7QUFDaEMsTUFBSSxHQUFHLEdBQUcsSUFBSSxJQUFJLElBQUksQ0FBQyxHQUFHO01BQ3RCLElBQUksWUFBQTtNQUNKLE1BQU0sWUFBQSxDQUFDO0FBQ1gsTUFBSSxHQUFHLEVBQUU7QUFDUCxRQUFJLEdBQUcsR0FBRyxDQUFDLEtBQUssQ0FBQyxJQUFJLENBQUM7QUFDdEIsVUFBTSxHQUFHLEdBQUcsQ0FBQyxLQUFLLENBQUMsTUFBTSxDQUFDOztBQUUxQixXQUFPLElBQUksS0FBSyxHQUFHLElBQUksR0FBRyxHQUFHLEdBQUcsTUFBTSxDQUFDO0dBQ3hDOztBQUVELE1BQUksR0FBRyxHQUFHLEtBQUssQ0FBQyxTQUFTLENBQUMsV0FBVyxDQUFDLElBQUksQ0FBQyxJQUFJLEVBQUUsT0FBTyxDQUFDLENBQUM7Ozt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JyArIGNvbHVtbjtcbiAgfVxuXG4gIGxldCB0bXAgPSBFcnJvci5wcm90b3R5cGUuY29uc3RydWN0b3IuY2FsbCh0aGlzLCBtZXNzYWdlKTtcblxuICAvLyBVbmZvcnR1bmF0ZWx5IGVycm9ycyBhcmUgbm90IGVudW1lcmFibGUgaW4gQ2hyb21lIChhdCBsZWFzdCksIHNvIGBmb3IgcHJvcCBpbiB0bXBgIGRvZXNuJ3Qgd29yay5cbiAgZm9yIChsZXQgaWR4ID0gMDsgaWR4IDwgZXJyb3JQcm9wcy5sZW5ndGg7IGlkeCsrKSB7XG4gICAgdGhpc1tlcnJvclByb3BzW2lkeF1dID0gdG1wW2Vycm9yUHJvcHNbaWR4XV07XG4gIH1cblxuICBpZiAoRXJyb3IuY2FwdHVyZVN0YWNrVHJhY2UpIHtcbiAgICBFcnJvci5jYXB0dXJlU3RhY2tUcmFjZSh0aGlzLCBFeGNlcHRpb24pO1xuICB9XG5cbiAgaWYgKGxvYykge1xuICAgIHRoaXMubGluZU51bWJlciA9IGxpbmU7XG4gICAgdGhpcy5jb2x1bW4gPSBjb2x1bW47XG4gIH1cbn1cblxuRXhjZXB0aW9uLnByb3RvdHlwZSA9IG5ldyBFcnJvcigpO1xuXG5leHBvcnQgZGVmYXVsdCBFeGNlcHRpb247XG4iXX0= |
@@ -1,3 +0,2 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
// Build out our basic SafeString type | ||
@@ -12,2 +11,4 @@ function SafeString(string) { | ||
exports['default'] = SafeString; | ||
exports.default = SafeString; | ||
module.exports = exports.default; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXN5bnRheC9oYW5kbGViYXJzL3NhZmUtc3RyaW5nLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQ0EsU0FBUyxVQUFVLENBQUMsTUFBTSxFQUFFO0FBQzFCLE1BQUksQ0FBQyxNQUFNLEdBQUcsTUFBTSxDQUFDO0NBQ3RCOztBQUVELFVBQVUsQ0FBQyxTQUFTLENBQUMsUUFBUSxHQUFHLFVBQVUsQ0FBQyxTQUFTLENBQUMsTUFBTSxHQUFHLFlBQVc7QUFDdkUsU0FBTyxFQUFFLEdBQUcsSUFBSSxDQUFDLE1BQU0sQ0FBQztDQUN6QixDQUFDOztrQkFFYSxVQUFVIiwiZmlsZSI6Imh0bWxiYXJzLXN5bnRheC9oYW5kbGViYXJzL3NhZmUtc3RyaW5nLmpzIiwic291cmNlc0NvbnRlbnQiOlsiLy8gQnVpbGQgb3V0IG91ciBiYXNpYyBTYWZlU3RyaW5nIHR5cGVcbmZ1bmN0aW9uIFNhZmVTdHJpbmcoc3RyaW5nKSB7XG4gIHRoaXMuc3RyaW5nID0gc3RyaW5nO1xufVxuXG5TYWZlU3RyaW5nLnByb3RvdHlwZS50b1N0cmluZyA9IFNhZmVTdHJpbmcucHJvdG90eXBlLnRvSFRNTCA9IGZ1bmN0aW9uKCkge1xuICByZXR1cm4gJycgKyB0aGlzLnN0cmluZztcbn07XG5cbmV4cG9ydCBkZWZhdWx0IFNhZmVTdHJpbmc7XG4iXX0= |
@@ -1,3 +0,2 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
exports.extend = extend; | ||
@@ -9,3 +8,2 @@ exports.indexOf = indexOf; | ||
exports.appendContextPath = appendContextPath; | ||
var escape = { | ||
@@ -26,2 +24,3 @@ '&': '&', | ||
} | ||
function extend(obj /* , ...source */) { | ||
@@ -41,2 +40,6 @@ for (var i = 1; i < arguments.length; i++) { | ||
exports.toString = toString; | ||
// Sourced from lodash | ||
// https://github.com/bestiejs/lodash/blob/master/LICENSE.txt | ||
/*eslint-disable func-style, no-var */ | ||
var isFunction = function (value) { | ||
@@ -48,3 +51,3 @@ return typeof value === 'function'; | ||
if (isFunction(/x/)) { | ||
isFunction = function (value) { | ||
exports.isFunction = isFunction = function (value) { | ||
return typeof value === 'function' && toString.call(value) === '[object Function]'; | ||
@@ -54,2 +57,6 @@ }; | ||
var isFunction; | ||
exports.isFunction = isFunction; | ||
/*eslint-enable func-style, no-var */ | ||
/* istanbul ignore next */ | ||
var isArray = Array.isArray || function (value) { | ||
@@ -59,2 +66,5 @@ return value && typeof value === 'object' ? toString.call(value) === '[object Array]' : false; | ||
exports.isArray = isArray; | ||
// Older IE versions do not directly support indexOf so we must implement our own, sadly. | ||
function indexOf(array, value) { | ||
@@ -110,5 +120,2 @@ for (var i = 0, len = array.length; i < len; i++) { | ||
} | ||
exports.toString = toString; | ||
exports.isFunction = isFunction; | ||
exports.isArray = isArray; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXN5bnRheC9oYW5kbGViYXJzL3V0aWxzLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7UUFnQmdCLE1BQU0sR0FBTixNQUFNO1FBb0NOLE9BQU8sR0FBUCxPQUFPO1FBVVAsZ0JBQWdCLEdBQWhCLGdCQUFnQjtRQXFCaEIsT0FBTyxHQUFQLE9BQU87UUFVUCxXQUFXLEdBQVgsV0FBVztRQUtYLGlCQUFpQixHQUFqQixpQkFBaUI7QUFsR2pDLElBQU0sTUFBTSxHQUFHO0FBQ2IsS0FBRyxFQUFFLE9BQU87QUFDWixLQUFHLEVBQUUsTUFBTTtBQUNYLEtBQUcsRUFBRSxNQUFNO0FBQ1gsS0FBRyxFQUFFLFFBQVE7QUFDYixNQUFHLEVBQUUsUUFBUTtBQUNiLEtBQUcsRUFBRSxRQUFRO0NBQ2QsQ0FBQzs7QUFFRixJQUFNLFFBQVEsR0FBRyxXQUFXO0lBQ3RCLFFBQVEsR0FBRyxVQUFVLENBQUM7O0FBRTVCLFNBQVMsVUFBVSxDQUFDLEdBQUcsRUFBRTtBQUN2QixTQUFPLE1BQU0sQ0FBQyxHQUFHLENBQUMsQ0FBQztDQUNwQjs7QUFFTSxTQUFTLE1BQU0sQ0FBQyxHQ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1cbiJdfQ== |
@@ -1,18 +0,37 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
exports.preprocess = preprocess; | ||
exports.Parser = Parser; | ||
var base = require('./handlebars/compiler/base'); | ||
var syntax = require('../htmlbars-syntax'); | ||
var EventedTokenizer = require('../simple-html-tokenizer/evented-tokenizer'); | ||
var EntityParser = require('../simple-html-tokenizer/entity-parser'); | ||
var fullCharRefs = require('../simple-html-tokenizer/char-refs/full'); | ||
var handlebarsNodeVisitors = require('./parser/handlebars-node-visitors'); | ||
var tokenizerEventHandlers = require('./parser/tokenizer-event-handlers'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj["default"] = obj; return newObj; } } | ||
var _handlebarsCompilerBase = require("./handlebars/compiler/base"); | ||
var _htmlbarsSyntax = require("../htmlbars-syntax"); | ||
var syntax = _interopRequireWildcard(_htmlbarsSyntax); | ||
var _simpleHtmlTokenizerEventedTokenizer = require("../simple-html-tokenizer/evented-tokenizer"); | ||
var _simpleHtmlTokenizerEventedTokenizer2 = _interopRequireDefault(_simpleHtmlTokenizerEventedTokenizer); | ||
var _simpleHtmlTokenizerEntityParser = require("../simple-html-tokenizer/entity-parser"); | ||
var _simpleHtmlTokenizerEntityParser2 = _interopRequireDefault(_simpleHtmlTokenizerEntityParser); | ||
var _simpleHtmlTokenizerCharRefsFull = require("../simple-html-tokenizer/char-refs/full"); | ||
var _simpleHtmlTokenizerCharRefsFull2 = _interopRequireDefault(_simpleHtmlTokenizerCharRefsFull); | ||
var _parserHandlebarsNodeVisitors = require("./parser/handlebars-node-visitors"); | ||
var _parserHandlebarsNodeVisitors2 = _interopRequireDefault(_parserHandlebarsNodeVisitors); | ||
var _parserTokenizerEventHandlers = require("./parser/tokenizer-event-handlers"); | ||
var _parserTokenizerEventHandlers2 = _interopRequireDefault(_parserTokenizerEventHandlers); | ||
function preprocess(html, options) { | ||
var ast = typeof html === "object" ? html : base.parse(html); | ||
var ast = typeof html === "object" ? html : _handlebarsCompilerBase.parse(html); | ||
var combined = new Parser(html, options).acceptNode(ast); | ||
@@ -33,9 +52,10 @@ | ||
exports['default'] = preprocess; | ||
exports.default = preprocess; | ||
var entityParser = new EntityParser['default'](fullCharRefs['default']); | ||
var entityParser = new _simpleHtmlTokenizerEntityParser2.default(_simpleHtmlTokenizerCharRefsFull2.default); | ||
function Parser(source, options) { | ||
this.options = options || {}; | ||
this.elementStack = []; | ||
this.tokenizer = new EventedTokenizer['default'](this, entityParser); | ||
this.tokenizer = new _simpleHtmlTokenizerEventedTokenizer2.default(this, entityParser); | ||
@@ -50,8 +70,8 @@ this.currentNode = null; | ||
for (var key in handlebarsNodeVisitors['default']) { | ||
Parser.prototype[key] = handlebarsNodeVisitors['default'][key]; | ||
for (var key in _parserHandlebarsNodeVisitors2.default) { | ||
Parser.prototype[key] = _parserHandlebarsNodeVisitors2.default[key]; | ||
} | ||
for (var key in tokenizerEventHandlers['default']) { | ||
Parser.prototype[key] = tokenizerEventHandlers['default'][key]; | ||
for (var key in _parserTokenizerEventHandlers2.default) { | ||
Parser.prototype[key] = _parserTokenizerEventHandlers2.default[key]; | ||
} | ||
@@ -98,2 +118,3 @@ | ||
return string.join("\n"); | ||
}; | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXN5bnRheC9wYXJzZXIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtRQVFnQixVQUFVLEdBQVYsVUFBVTtRQXFCVixNQUFNLEdBQU4sTUFBTTs7Ozs7O3NDQTdCQSw0QkFBNEI7OzhCQUMxQixvQkFBb0I7O0lBQWhDLE1BQU07O21EQUNXLDRDQUE0Qzs7OzsrQ0FDaEQsd0NBQXdDOzs7OytDQ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IHtcbiAgICByZXR1cm4gJ3t7JyArIG11c3RhY2hlLnBhdGguaWQub3JpZ2luYWwgKyAnfX0nO1xuICB9XG5cbiAgd2hpbGUgKGN1cnJlbnRMaW5lIDwgbGFzdExpbmUpIHtcbiAgICBjdXJyZW50TGluZSsrO1xuICAgIGxpbmUgPSB0aGlzLnNvdXJjZVtjdXJyZW50TGluZV07XG5cbiAgICBpZiAoY3VycmVudExpbmUgPT09IGZpcnN0TGluZSkge1xuICAgICAgaWYgKGZpcnN0TGluZSA9PT0gbGFzdExpbmUpIHtcbiAgICAgICAgc3RyaW5nLnB1c2gobGluZS5zbGljZShmaXJzdENvbHVtbiwgbGFzdENvbHVtbikpO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgc3RyaW5nLnB1c2gobGluZS5zbGljZShmaXJzdENvbHVtbikpO1xuICAgICAgfVxuICAgIH0gZWxzZSBpZiAoY3VycmVudExpbmUgPT09IGxhc3RMaW5lKSB7XG4gICAgICBzdHJpbmcucHVzaChsaW5lLnNsaWNlKDAsIGxhc3RDb2x1bW4pKTtcbiAgICB9IGVsc2Uge1xuICAgICAgc3RyaW5nLnB1c2gobGluZSk7XG4gICAgfVxuICB9XG5cbiAgcmV0dXJuIHN0cmluZy5qb2luKCdcXG4nKTtcbn07XG4iXX0= |
@@ -1,11 +0,16 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
var b = require('../builders'); | ||
var utils = require('../utils'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
exports['default'] = { | ||
var _builders = require("../builders"); | ||
var _builders2 = _interopRequireDefault(_builders); | ||
var _utils = require("../utils"); | ||
exports.default = { | ||
Program: function (program) { | ||
var body = []; | ||
var node = b['default'].program(body, program.blockParams, program.loc); | ||
var node = _builders2.default.program(body, program.blockParams, program.loc); | ||
var i, | ||
@@ -51,5 +56,5 @@ l = program.body.length; | ||
var node = b['default'].block(block.path, block.params, block.hash, program, inverse, block.loc); | ||
var node = _builders2.default.block(block.path, block.params, block.hash, program, inverse, block.loc); | ||
var parentProgram = this.currentElement(); | ||
utils.appendChild(parentProgram, node); | ||
_utils.appendChild(parentProgram, node); | ||
}, | ||
@@ -65,3 +70,3 @@ | ||
var mustache = b['default'].mustache(path, params, hash, !escaped, loc); | ||
var mustache = _builders2.default.mustache(path, params, hash, !escaped, loc); | ||
@@ -110,3 +115,3 @@ if (tokenizer.state === "comment") { | ||
default: | ||
utils.appendChild(this.currentElement(), mustache); | ||
_utils.appendChild(this.currentElement(), mustache); | ||
} | ||
@@ -133,3 +138,3 @@ | ||
PartialStatement: function (partial) { | ||
utils.appendChild(this.currentElement(), partial); | ||
_utils.appendChild(this.currentElement(), partial); | ||
return partial; | ||
@@ -193,3 +198,3 @@ }, | ||
} else { | ||
node.hash = b['default'].hash(); | ||
node.hash = _builders2.default.hash(); | ||
} | ||
@@ -206,3 +211,3 @@ | ||
var modifier = b['default'].elementModifier(path, params, hash, loc); | ||
var modifier = _builders2.default.elementModifier(path, params, hash, loc); | ||
element.modifiers.push(modifier); | ||
@@ -214,2 +219,4 @@ } | ||
attribute.parts.push(part); | ||
} | ||
} | ||
module.exports = exports.default; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXN5bnRheC9wYXJzZXIvaGFuZGxlYmFycy1ub2RlLXZpc2l0b3JzLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7d0JBQWMsYUFBYTs7OztxQkFDQyxVQUFVOztrQkFFdkI7O0FBRWIsU0FBTyxFQUFFLFVBQVMsT0FBTyxFQUFFO0FBQ3pCLFFBQUksSUFBSSxHQUFHLEVBQUUsQ0FBQztBQUNkLFFBQUksSUFBSSxHQUFHLG1CQUFFLE9BQU8sQ0FBQyxJQUFJLEVBQUUsT0FBTyxDQUFDLFdBQVcsRUFBRSxPQUFPLENBQUMsR0FBRyxDQUFDLENBQUM7QUFDN0QsUUFBSSxDQ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GNvbXBpbGVyLCBub2RlKSB7XG4gIGNvbXBpbGVyLmFjY2VwdE5vZGUobm9kZS5wYXRoKTtcblxuICBpZiAobm9kZS5wYXJhbXMpIHtcbiAgICBmb3IgKHZhciBpID0gMDsgaSA8IG5vZGUucGFyYW1zLmxlbmd0aDsgaSsrKSB7XG4gICAgICBjb21waWxlci5hY2NlcHROb2RlKG5vZGUucGFyYW1zW2ldKTtcbiAgICB9XG4gIH0gZWxzZSB7XG4gICAgbm9kZS5wYXJhbXMgPSBbXTtcbiAgfVxuXG4gIGlmIChub2RlLmhhc2gpIHtcbiAgICBjb21waWxlci5hY2NlcHROb2RlKG5vZGUuaGFzaCk7XG4gIH0gZWxzZSB7XG4gICAgbm9kZS5oYXNoID0gYi5oYXNoKCk7XG4gIH1cblxuICByZXR1cm4gbm9kZTtcbn1cblxuZnVuY3Rpb24gYWRkRWxlbWVudE1vZGlmaWVyKGVsZW1lbnQsIG11c3RhY2hlKSB7XG4gIGxldCB7IHBhdGgsIHBhcmFtcywgaGFzaCwgbG9jIH0gPSBtdXN0YWNoZTtcbiAgbGV0IG1vZGlmaWVyID0gYi5lbGVtZW50TW9kaWZpZXIocGF0aCwgcGFyYW1zLCBoYXNoLCBsb2MpO1xuICBlbGVtZW50Lm1vZGlmaWVycy5wdXNoKG1vZGlmaWVyKTtcbn1cblxuZnVuY3Rpb24gYXBwZW5kRHluYW1pY0F0dHJpYnV0ZVZhbHVlUGFydChhdHRyaWJ1dGUsIHBhcnQpIHtcbiAgYXR0cmlidXRlLmlzRHluYW1pYyA9IHRydWU7XG4gIGF0dHJpYnV0ZS5wYXJ0cy5wdXNoKHBhcnQpO1xufVxuIl19 |
@@ -1,8 +0,16 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
var voidMap = require('../../htmlbars-util/void-tag-names'); | ||
var b = require('../builders'); | ||
var utils = require('../utils'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
exports['default'] = { | ||
var _htmlbarsUtilVoidTagNames = require("../../htmlbars-util/void-tag-names"); | ||
var _htmlbarsUtilVoidTagNames2 = _interopRequireDefault(_htmlbarsUtilVoidTagNames); | ||
var _builders = require("../builders"); | ||
var _builders2 = _interopRequireDefault(_builders); | ||
var _utils = require("../utils"); | ||
exports.default = { | ||
reset: function () { | ||
@@ -15,3 +23,3 @@ this.currentNode = null; | ||
beginComment: function () { | ||
this.currentNode = b['default'].comment(""); | ||
this.currentNode = _builders2.default.comment(""); | ||
}, | ||
@@ -24,3 +32,3 @@ | ||
finishComment: function () { | ||
utils.appendChild(this.currentElement(), this.currentNode); | ||
_utils.appendChild(this.currentElement(), this.currentNode); | ||
}, | ||
@@ -31,3 +39,3 @@ | ||
beginData: function () { | ||
this.currentNode = b['default'].text(); | ||
this.currentNode = _builders2.default.text(); | ||
}, | ||
@@ -40,3 +48,3 @@ | ||
finishData: function () { | ||
utils.appendChild(this.currentElement(), this.currentNode); | ||
_utils.appendChild(this.currentElement(), this.currentNode); | ||
}, | ||
@@ -76,3 +84,3 @@ | ||
var tag = this.currentNode; | ||
tag.loc = b['default'].loc(tagLine, tagColumn, line, column); | ||
tag.loc = _builders2.default.loc(tagLine, tagColumn, line, column); | ||
@@ -82,3 +90,3 @@ if (tag.type === "StartTag") { | ||
if (voidMap['default'].hasOwnProperty(tag.name) || tag.selfClosing) { | ||
if (_htmlbarsUtilVoidTagNames2.default.hasOwnProperty(tag.name) || tag.selfClosing) { | ||
this.finishEndTag(true); | ||
@@ -97,4 +105,4 @@ } | ||
var loc = b['default'].loc(this.tokenizer.tagLine, this.tokenizer.tagColumn); | ||
var element = b['default'].element(name, attributes, modifiers, [], loc); | ||
var loc = _builders2.default.loc(this.tokenizer.tagLine, this.tokenizer.tagColumn); | ||
var element = _builders2.default.element(name, attributes, modifiers, [], loc); | ||
this.elementStack.push(element); | ||
@@ -116,8 +124,8 @@ }, | ||
if (disableComponentGeneration || element.tag.indexOf("-") === -1) { | ||
utils.appendChild(parent, element); | ||
_utils.appendChild(parent, element); | ||
} else { | ||
var program = b['default'].program(element.children); | ||
utils.parseComponentBlockParams(element, program); | ||
var component = b['default'].component(element.tag, element.attributes, program, element.loc); | ||
utils.appendChild(parent, component); | ||
var program = _builders2.default.program(element.children); | ||
_utils.parseComponentBlockParams(element, program); | ||
var component = _builders2.default.component(element.tag, element.attributes, program, element.loc); | ||
_utils.appendChild(parent, component); | ||
} | ||
@@ -179,3 +187,3 @@ }, | ||
this.currentNode.attributes.push(b['default'].attr(name, value)); | ||
this.currentNode.attributes.push(_builders2.default.attr(name, value)); | ||
} | ||
@@ -196,3 +204,3 @@ }; | ||
} else { | ||
return b['default'].text(parts.length > 0 ? parts[0] : ""); | ||
return _builders2.default.text(parts.length > 0 ? parts[0] : ""); | ||
} | ||
@@ -206,6 +214,6 @@ } | ||
if (typeof part === "string") { | ||
parts[i] = b['default'].string(parts[i]); | ||
parts[i] = _builders2.default.string(parts[i]); | ||
} else { | ||
if (part.type === "MustacheStatement") { | ||
parts[i] = utils.unwrapMustache(part); | ||
parts[i] = _utils.unwrapMustache(part); | ||
} else { | ||
@@ -217,3 +225,3 @@ throw new Error("Unsupported node in quoted attribute value: " + part.type); | ||
return b['default'].concat(parts); | ||
return _builders2.default.concat(parts); | ||
} | ||
@@ -224,3 +232,3 @@ | ||
if (voidMap['default'][tag.name] && !selfClosing) { | ||
if (_htmlbarsUtilVoidTagNames2.default[tag.name] && !selfClosing) { | ||
// EngTag is also called by StartTag for void and self-closing tags (i.e. | ||
@@ -243,2 +251,4 @@ // <input> or <br />, so we need to check for that here. Otherwise, we would | ||
return "`" + tag.name + "` (on line " + tag.loc.end.line + ")"; | ||
} | ||
} | ||
module.exports = exports.default; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXN5bnRheC9wYXJzZXIvdG9rZW5pemVyLWV2ZW50LWhhbmRsZXJzLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3M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PGJyIC8+LCBzbyB3ZSBuZWVkIHRvIGNoZWNrIGZvciB0aGF0IGhlcmUuIE90aGVyd2lzZSwgd2Ugd291bGRcbiAgICAvLyB0aHJvdyBhbiBlcnJvciBmb3IgdGhvc2UgY2FzZXMuXG4gICAgZXJyb3IgPSBcIkludmFsaWQgZW5kIHRhZyBcIiArIGZvcm1hdEVuZFRhZ0luZm8odGFnKSArIFwiICh2b2lkIGVsZW1lbnRzIGNhbm5vdCBoYXZlIGVuZCB0YWdzKS5cIjtcbiAgfSBlbHNlIGlmIChlbGVtZW50LnRhZyA9PT0gdW5kZWZpbmVkKSB7XG4gICAgZXJyb3IgPSBcIkNsb3NpbmcgdGFnIFwiICsgZm9ybWF0RW5kVGFnSW5mbyh0YWcpICsgXCIgd2l0aG91dCBhbiBvcGVuIHRhZy5cIjtcbiAgfSBlbHNlIGlmIChlbGVtZW50LnRhZyAhPT0gdGFnLm5hbWUpIHtcbiAgICBlcnJvciA9IFwiQ2xvc2luZyB0YWcgXCIgKyBmb3JtYXRFbmRUYWdJbmZvKHRhZykgKyBcIiBkaWQgbm90IG1hdGNoIGxhc3Qgb3BlbiB0YWcgYFwiICsgZWxlbWVudC50YWcgKyBcImAgKG9uIGxpbmUgXCIgK1xuICAgICAgICAgICAgZWxlbWVudC5sb2Muc3RhcnQubGluZSArIFwiKS5cIjtcbiAgfVxuXG4gIGlmIChlcnJvcikgeyB0aHJvdyBuZXcgRXJyb3IoZXJyb3IpOyB9XG59XG5cbmZ1bmN0aW9uIGZvcm1hdEVuZFRhZ0luZm8odGFnKSB7XG4gIHJldHVybiBcImBcIiArIHRhZy5uYW1lICsgXCJgIChvbiBsaW5lIFwiICsgdGFnLmxvYy5lbmQubGluZSArIFwiKVwiO1xufVxuIl19 |
@@ -1,3 +0,2 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
exports.parseComponentBlockParams = parseComponentBlockParams; | ||
@@ -9,6 +8,7 @@ exports.childrenFor = childrenFor; | ||
var array_utils = require('../htmlbars-util/array-utils'); | ||
var _htmlbarsUtilArrayUtils = require('../htmlbars-util/array-utils'); | ||
// Regex to validate the identifier for block parameters. | ||
// Based on the ID validation regex in Handlebars. | ||
var ID_INVERSE_PATTERN = /[!"#%-,\.\/;->@\[-\^`\{-~]/; | ||
@@ -28,3 +28,3 @@ | ||
var asIndex = array_utils.indexOfArray(attrNames, 'as'); | ||
var asIndex = _htmlbarsUtilArrayUtils.indexOfArray(attrNames, 'as'); | ||
@@ -81,2 +81,3 @@ if (asIndex !== -1 && l > asIndex && attrNames[asIndex + 1].charAt(0) === '|') { | ||
} | ||
} | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXN5bnRheC91dGlscy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO1FBVWdCLHlCQUF5QixHQUF6Qix5QkFBeUI7UUFxQ3pCLFdBQVcsR0FBWCxXQUFXO1FBU1gsV0FBVyxHQUFYLFdBQVc7UUFJWCxRQUFRLEdBQVIsUUFBUTtRQUtSLGNBQWMsR0FBZCxjQUFjOztzQ0FqRUQsOEJBQThCOzs7OztBQUkzRCxJQUFJLGtCQUFrQixHQUFHLDRCQUE0QixDQUFDOzs7Ozs7QUFNL0MsU0FBUyx5QkFBeUIsQ0FBQyxPQUFPLEVBQUUsT0FBTyxFQUFFO0FBQzFELE1BQUksQ0FBQyxHQUFHLE9BQU8sQ0FBQyxVQUFVLENBQUMsTUFBTSxDQUFDO0FBQ2xDLE1BQUksU0FBUyxHQUFHLEVBQUUsQ0FBQzs7QUFFbkIsT0FBSyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEVBQUUsRUFBRTtBQUMxQixhQUFTLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxVQUFVLENBQUMsQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUFDLENBQUM7R0FDN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pIHtcbiAgaWYgKGlzSGVscGVyKG11c3RhY2hlKSkge1xuICAgIHJldHVybiBtdXN0YWNoZTtcbiAgfSBlbHNlIHtcbiAgICByZXR1cm4gbXVzdGFjaGUucGF0aDtcbiAgfVxufVxuIl19 |
@@ -1,3 +0,2 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
exports.equalInnerHTML = equalInnerHTML; | ||
@@ -10,7 +9,6 @@ exports.equalHTML = equalHTML; | ||
var simple_html_tokenizer = require('../simple-html-tokenizer'); | ||
var array_utils = require('../htmlbars-util/array-utils'); | ||
var _simpleHtmlTokenizer = require("../simple-html-tokenizer"); | ||
var _htmlbarsUtilArrayUtils = require("../htmlbars-util/array-utils"); | ||
function equalInnerHTML(fragment, html) { | ||
@@ -46,4 +44,5 @@ var actualHTML = normalizeInnerHTML(fragment.innerHTML); | ||
return { tokens: simple_html_tokenizer.tokenize(div.innerHTML), html: div.innerHTML }; | ||
return { tokens: _simpleHtmlTokenizer.tokenize(div.innerHTML), html: div.innerHTML }; | ||
} | ||
function equalTokens(fragment, html, message) { | ||
@@ -74,4 +73,4 @@ if (fragment.fragment) { | ||
array_utils.forEach(fragTokens.tokens, normalizeTokens); | ||
array_utils.forEach(htmlTokens.tokens, normalizeTokens); | ||
_htmlbarsUtilArrayUtils.forEach(fragTokens.tokens, normalizeTokens); | ||
_htmlbarsUtilArrayUtils.forEach(htmlTokens.tokens, normalizeTokens); | ||
@@ -98,2 +97,3 @@ var msg = "Expected: " + html + "; Actual: " + fragTokens.html; | ||
})(); | ||
function normalizeInnerHTML(actualHTML) { | ||
@@ -117,2 +117,3 @@ if (ieSVGInnerHTML) { | ||
var checkedInputString = checkedInput.outerHTML; | ||
function isCheckedInputHTML(element) { | ||
@@ -124,2 +125,3 @@ equal(element.outerHTML, checkedInputString); | ||
var textProperty = document.createElement("div").textContent === undefined ? "innerText" : "textContent"; | ||
function getTextContent(el) { | ||
@@ -132,2 +134,3 @@ // textNode | ||
} | ||
} | ||
} | ||
//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XIgY2hlY2tlZElucHV0ID0gZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgnaW5wdXQnKTtcbmNoZWNrZWRJbnB1dC5zZXRBdHRyaWJ1dGUoJ2NoZWNrZWQnLCAnY2hlY2tlZCcpO1xudmFyIGNoZWNrZWRJbnB1dFN0cmluZyA9IGNoZWNrZWRJbnB1dC5vdXRlckhUTUw7XG5leHBvcnQgZnVuY3Rpb24gaXNDaGVja2VkSW5wdXRIVE1MKGVsZW1lbnQpIHtcbiAgZXF1YWwoZWxlbWVudC5vdXRlckhUTUwsIGNoZWNrZWRJbnB1dFN0cmluZyk7XG59XG5cbi8vIGNoZWNrIHdoaWNoIHByb3BlcnR5IGhhcyB0aGUgbm9kZSdzIHRleHQgY29udGVudFxudmFyIHRleHRQcm9wZXJ0eSA9IGRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoJ2RpdicpLnRleHRDb250ZW50ID09PSB1bmRlZmluZWQgPyAnaW5uZXJUZXh0JyA6ICd0ZXh0Q29udGVudCc7XG5leHBvcnQgZnVuY3Rpb24gZ2V0VGV4dENvbnRlbnQoZWwpIHtcbiAgLy8gdGV4dE5vZGVcbiAgaWYgKGVsLm5vZGVUeXBlID09PSAzKSB7XG4gICAgcmV0dXJuIGVsLm5vZGVWYWx1ZTtcbiAgfSBlbHNlIHtcbiAgICByZXR1cm4gZWxbdGV4dFByb3BlcnR5XTtcbiAgfVxufVxuIl19 |
@@ -1,13 +0,21 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
var SafeString = require('./htmlbars-util/safe-string'); | ||
var utils = require('./htmlbars-util/handlebars/utils'); | ||
var namespaces = require('./htmlbars-util/namespaces'); | ||
var morph_utils = require('./htmlbars-util/morph-utils'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
exports.SafeString = SafeString['default']; | ||
exports.escapeExpression = utils.escapeExpression; | ||
exports.getAttrNamespace = namespaces.getAttrNamespace; | ||
exports.validateChildMorphs = morph_utils.validateChildMorphs; | ||
exports.linkParams = morph_utils.linkParams; | ||
exports.dump = morph_utils.dump; | ||
var _htmlbarsUtilSafeString = require('./htmlbars-util/safe-string'); | ||
var _htmlbarsUtilSafeString2 = _interopRequireDefault(_htmlbarsUtilSafeString); | ||
var _htmlbarsUtilHandlebarsUtils = require('./htmlbars-util/handlebars/utils'); | ||
var _htmlbarsUtilNamespaces = require('./htmlbars-util/namespaces'); | ||
var _htmlbarsUtilMorphUtils = require('./htmlbars-util/morph-utils'); | ||
exports.SafeString = _htmlbarsUtilSafeString2.default; | ||
exports.escapeExpression = _htmlbarsUtilHandlebarsUtils.escapeExpression; | ||
exports.getAttrNamespace = _htmlbarsUtilNamespaces.getAttrNamespace; | ||
exports.validateChildMorphs = _htmlbarsUtilMorphUtils.validateChildMorphs; | ||
exports.linkParams = _htmlbarsUtilMorphUtils.linkParams; | ||
exports.dump = _htmlbarsUtilMorphUtils.dump; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXV0aWwuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztzQ0FBdUIsNkJBQTZCOzs7OzJDQUNuQixrQ0FBa0M7O3NDQUNsQyw0QkFBNEI7O3NDQUNQLDZCQUE2Qjs7UUFHakYsVUFBVTtRQUNWLGdCQUFnQixnQ0FOVCxnQkFBZ0I7UUFPdkIsZ0JBQWdCLDJCQU5ULGdCQUFnQjtRQU92QixtQkFBbUIsMkJBTlosbUJBQW1CO1FBTzFCLFVBQVUsMkJBUGtCLFVBQVU7UUFRdEMsSUFBSSwyQkFSb0MsSUFBSSIsImZpbGUiOiJodG1sYmFycy11dGlsLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFNhZmVTdHJpbmcgZnJvbSAnLi9odG1sYmFycy11dGlsL3NhZmUtc3RyaW5nJztcbmltcG9ydCB7IGVzY2FwZUV4cHJlc3Npb24gfSBmcm9tICcuL2h0bWxiYXJzLXV0aWwvaGFuZGxlYmFycy91dGlscyc7XG5pbXBvcnQgeyBnZXRBdHRyTmFtZXNwYWNlIH0gZnJvbSAnLi9odG1sYmFycy11dGlsL25hbWVzcGFjZXMnO1xuaW1wb3J0IHsgdmFsaWRhdGVDaGlsZE1vcnBocywgbGlua1BhcmFtcywgZHVtcCB9IGZyb20gJy4vaHRtbGJhcnMtdXRpbC9tb3JwaC11dGlscyc7XG5cbmV4cG9ydCB7XG4gIFNhZmVTdHJpbmcsXG4gIGVzY2FwZUV4cHJlc3Npb24sXG4gIGdldEF0dHJOYW1lc3BhY2UsXG4gIHZhbGlkYXRlQ2hpbGRNb3JwaHMsXG4gIGxpbmtQYXJhbXMsXG4gIGR1bXBcbn07XG4iXX0= |
@@ -1,3 +0,2 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
exports.forEach = forEach; | ||
@@ -55,5 +54,5 @@ exports.map = map; | ||
exports.isArray = isArray; | ||
var indexOfArray = getIdx; | ||
exports.isArray = isArray; | ||
exports.indexOfArray = indexOfArray; | ||
exports.indexOfArray = indexOfArray; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXV0aWwvYXJyYXktdXRpbHMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtRQUFnQixPQUFPLEdBQVAsT0FBTztRQWFQLEdBQUcsR0FBSCxHQUFHOztBQWJaLFNBQVMsT0FBTyxDQUFDLEtBQUssRUFBRSxRQUFRLEVBQUUsT0FBTyxFQUFFO0FBQ2hELE1BQUksQ0FBQyxFQUFFLENBQUMsQ0FBQztBQUNULE1BQUksT0FBTyxLQUFLLFNBQVMsRUFBRTtBQUN6QixTQUFLLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxHQUFHLEtBQUssQ0FBQyxNQUFNLEVBQUUsQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEVBQUUsRUFBRTtBQUN4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pID0gZnJvbSwgbD0gYXJyYXkubGVuZ3RoOyBpIDwgbDsgaSsrKSB7XG4gICAgICBpZiAoYXJyYXlbaV0gPT09IG9iaikge1xuICAgICAgICByZXR1cm4gaTtcbiAgICAgIH1cbiAgICB9XG4gICAgcmV0dXJuIC0xO1xuICB9O1xufVxuXG5leHBvcnQgdmFyIGlzQXJyYXkgPSAoQXJyYXkuaXNBcnJheSB8fCBmdW5jdGlvbihhcnJheSkge1xuICByZXR1cm4gT2JqZWN0LnByb3RvdHlwZS50b1N0cmluZy5jYWxsKGFycmF5KSA9PT0gJ1tvYmplY3QgQXJyYXldJztcbn0pO1xuXG5leHBvcnQgdmFyIGluZGV4T2ZBcnJheSA9IGdldElkeDtcbiJdfQ== |
@@ -1,3 +0,2 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
// Build out our basic SafeString type | ||
@@ -12,2 +11,4 @@ function SafeString(string) { | ||
exports['default'] = SafeString; | ||
exports.default = SafeString; | ||
module.exports = exports.default; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXV0aWwvaGFuZGxlYmFycy9zYWZlLXN0cmluZy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUNBLFNBQVMsVUFBVSxDQUFDLE1BQU0sRUFBRTtBQUMxQixNQUFJLENBQUMsTUFBTSxHQUFHLE1BQU0sQ0FBQztDQUN0Qjs7QUFFRCxVQUFVLENBQUMsU0FBUyxDQUFDLFFBQVEsR0FBRyxVQUFVLENBQUMsU0FBUyxDQUFDLE1BQU0sR0FBRyxZQUFXO0FBQ3ZFLFNBQU8sRUFBRSxHQUFHLElBQUksQ0FBQyxNQUFNLENBQUM7Q0FDekIsQ0FBQzs7a0JBRWEsVUFBVSIsImZpbGUiOiJodG1sYmFycy11dGlsL2hhbmRsZWJhcnMvc2FmZS1zdHJpbmcuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBCdWlsZCBvdXQgb3VyIGJhc2ljIFNhZmVTdHJpbmcgdHlwZVxuZnVuY3Rpb24gU2FmZVN0cmluZyhzdHJpbmcpIHtcbiAgdGhpcy5zdHJpbmcgPSBzdHJpbmc7XG59XG5cblNhZmVTdHJpbmcucHJvdG90eXBlLnRvU3RyaW5nID0gU2FmZVN0cmluZy5wcm90b3R5cGUudG9IVE1MID0gZnVuY3Rpb24oKSB7XG4gIHJldHVybiAnJyArIHRoaXMuc3RyaW5nO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgU2FmZVN0cmluZztcbiJdfQ== |
@@ -1,3 +0,2 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
exports.extend = extend; | ||
@@ -9,3 +8,2 @@ exports.indexOf = indexOf; | ||
exports.appendContextPath = appendContextPath; | ||
var escape = { | ||
@@ -26,2 +24,3 @@ '&': '&', | ||
} | ||
function extend(obj /* , ...source */) { | ||
@@ -41,2 +40,6 @@ for (var i = 1; i < arguments.length; i++) { | ||
exports.toString = toString; | ||
// Sourced from lodash | ||
// https://github.com/bestiejs/lodash/blob/master/LICENSE.txt | ||
/*eslint-disable func-style, no-var */ | ||
var isFunction = function (value) { | ||
@@ -48,3 +51,3 @@ return typeof value === 'function'; | ||
if (isFunction(/x/)) { | ||
isFunction = function (value) { | ||
exports.isFunction = isFunction = function (value) { | ||
return typeof value === 'function' && toString.call(value) === '[object Function]'; | ||
@@ -54,2 +57,6 @@ }; | ||
var isFunction; | ||
exports.isFunction = isFunction; | ||
/*eslint-enable func-style, no-var */ | ||
/* istanbul ignore next */ | ||
var isArray = Array.isArray || function (value) { | ||
@@ -59,2 +66,5 @@ return value && typeof value === 'object' ? toString.call(value) === '[object Array]' : false; | ||
exports.isArray = isArray; | ||
// Older IE versions do not directly support indexOf so we must implement our own, sadly. | ||
function indexOf(array, value) { | ||
@@ -110,5 +120,2 @@ for (var i = 0, len = array.length; i < len; i++) { | ||
} | ||
exports.toString = toString; | ||
exports.isFunction = isFunction; | ||
exports.isAr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c3RyaW5nIGhhcyBlc2NhcGVkIGNoYXJhY3RlcnMgaW4gaXQuXG4gICAgc3RyaW5nID0gJycgKyBzdHJpbmc7XG4gIH1cblxuICBpZiAoIXBvc3NpYmxlLnRlc3Qoc3RyaW5nKSkgeyByZXR1cm4gc3RyaW5nOyB9XG4gIHJldHVybiBzdHJpbmcucmVwbGFjZShiYWRDaGFycywgZXNjYXBlQ2hhcik7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBpc0VtcHR5KHZhbHVlKSB7XG4gIGlmICghdmFsdWUgJiYgdmFsdWUgIT09IDApIHtcbiAgICByZXR1cm4gdHJ1ZTtcbiAgfSBlbHNlIGlmIChpc0FycmF5KHZhbHVlKSAmJiB2YWx1ZS5sZW5ndGggPT09IDApIHtcbiAgICByZXR1cm4gdHJ1ZTtcbiAgfSBlbHNlIHtcbiAgICByZXR1cm4gZmFsc2U7XG4gIH1cbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGJsb2NrUGFyYW1zKHBhcmFtcywgaWRzKSB7XG4gIHBhcmFtcy5wYXRoID0gaWRzO1xuICByZXR1cm4gcGFyYW1zO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gYXBwZW5kQ29udGV4dFBhdGgoY29udGV4dFBhdGgsIGlkKSB7XG4gIHJldHVybiAoY29udGV4dFBhdGggPyBjb250ZXh0UGF0aCArICcuJyA6ICcnKSArIGlkO1xufVxuIl19 |
@@ -1,3 +0,2 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
exports.visitChildren = visitChildren; | ||
@@ -7,2 +6,3 @@ exports.validateChildMorphs = validateChildMorphs; | ||
exports.dump = dump; | ||
/*globals console*/ | ||
@@ -88,2 +88,3 @@ function visitChildren(nodes, callback) { | ||
} | ||
} | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXV0aWwvbW9ycGgtdXRpbHMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5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B9XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBkdW1wKG5vZGUpIHtcbiAgY29uc29sZS5ncm91cChub2RlLCBub2RlLmlzRGlydHkpO1xuXG4gIGlmIChub2RlLmNoaWxkTm9kZXMpIHtcbiAgICBtYXAobm9kZS5jaGlsZE5vZGVzLCBkdW1wKTtcbiAgfSBlbHNlIGlmIChub2RlLmZpcnN0Q2hpbGRNb3JwaCkge1xuICAgIHZhciBjdXJyZW50ID0gbm9kZS5maXJzdENoaWxkTW9ycGg7XG5cbiAgICB3aGlsZSAoY3VycmVudCkge1xuICAgICAgZHVtcChjdXJyZW50KTtcbiAgICAgIGN1cnJlbnQgPSBjdXJyZW50Lm5leHRNb3JwaDtcbiAgICB9XG4gIH0gZWxzZSBpZiAobm9kZS5tb3JwaExpc3QpIHtcbiAgICBkdW1wKG5vZGUubW9ycGhMaXN0KTtcbiAgfVxuXG4gIGNvbnNvbGUuZ3JvdXBFbmQoKTtcbn1cblxuZnVuY3Rpb24gbWFwKG5vZGVzLCBjYikge1xuICBmb3IgKHZhciBpPTAsIGw9bm9kZXMubGVuZ3RoOyBpPGw7IGkrKykge1xuICAgIGNiKG5vZGVzW2ldKTtcbiAgfVxufVxuIl19 |
@@ -1,5 +0,4 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
exports.getAttrNamespace = getAttrNamespace; | ||
// ref http://dev.w3.org/html5/spec-LC/namespaces.html | ||
var defaultNamespaces = { | ||
@@ -12,2 +11,3 @@ html: 'http://www.w3.org/1999/xhtml', | ||
}; | ||
function getAttrNamespace(attrName) { | ||
@@ -23,2 +23,3 @@ var namespace; | ||
return namespace || null; | ||
} | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXV0aWwvbmFtZXNwYWNlcy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO1FBU2dCLGdCQUFnQixHQUFoQixnQkFBZ0I7O0FBUmhD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G5cbmV4cG9ydCBmdW5jdGlvbiBnZXRBdHRyTmFtZXNwYWNlKGF0dHJOYW1lKSB7XG4gIHZhciBuYW1lc3BhY2U7XG5cbiAgdmFyIGNvbG9uSW5kZXggPSBhdHRyTmFtZS5pbmRleE9mKCc6Jyk7XG4gIGlmIChjb2xvbkluZGV4ICE9PSAtMSkge1xuICAgIHZhciBwcmVmaXggPSBhdHRyTmFtZS5zbGljZSgwLCBjb2xvbkluZGV4KTtcbiAgICBuYW1lc3BhY2UgPSBkZWZhdWx0TmFtZXNwYWNlc1twcmVmaXhdO1xuICB9XG5cbiAgcmV0dXJuIG5hbWVzcGFjZSB8fCBudWxsO1xufVxuIl19 |
@@ -1,3 +0,2 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
exports.merge = merge; | ||
@@ -44,2 +43,3 @@ exports.shallowCopy = shallowCopy; | ||
return count; | ||
} | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXV0aWwvb2JqZWN0LXV0aWxzLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7UUFBZ0IsS0FBSyxHQUFMLEtBQUs7UUFRTCxXQUFXLEdBQVgsV0FBVztRQUlYLE1BQU0sR0FBTixNQUFNO1FBWU4sU0FBUyxHQUFULFNBQVM7O0FBeEJsQixTQUFTLEtBQUssQ0FBQyxPQUFPLEVBQUUsUUFBUSxFQUFFO0FBQ3ZDLE9BQUssSUFBSSxJQUFJLElBQUksUUFBUSxFQUFFO0FBQ3pCLFFBQUksT0FBTyxDQUFDLGNBQWMsQ0FBQyxJQUFJLENBQUMsRUFBRTtBQUFFLGVBQVM7S0FBRTtBQUMvQyxXQUFPLENBQUMsSUFBSSxDQUFDLEdBQUcsUUFBUSxDQUFDLElBQUksQ0FBQyxDQUFDO0dBQ2hDO0FBQ0QsU0FBTyxPQUFPLENBQUM7Q0FDaEI7O0FBRU0sU0FBUyxXQUFXLENBQ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mopO1xufVxuXG5leHBvcnQgZnVuY3Rpb24ga2V5U2V0KG9iaikge1xuICB2YXIgc2V0ID0ge307XG5cbiAgZm9yICh2YXIgcHJvcCBpbiBvYmopIHtcbiAgICBpZiAob2JqLmhhc093blByb3BlcnR5KHByb3ApKSB7XG4gICAgICBzZXRbcHJvcF0gPSB0cnVlO1xuICAgIH1cbiAgfVxuXG4gIHJldHVybiBzZXQ7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBrZXlMZW5ndGgob2JqKSB7XG4gIHZhciBjb3VudCA9IDA7XG5cbiAgZm9yICh2YXIgcHJvcCBpbiBvYmopIHtcbiAgICBpZiAob2JqLmhhc093blByb3BlcnR5KHByb3ApKSB7XG4gICAgICBjb3VudCsrO1xuICAgIH1cbiAgfVxuXG4gIHJldHVybiBjb3VudDtcbn1cbiJdfQ== |
@@ -1,9 +0,4 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
exports.hash = hash; | ||
exports.repeat = repeat; | ||
exports.escapeString = escapeString; | ||
exports.string = string; | ||
exports.array = array; | ||
function escapeString(str) { | ||
@@ -16,2 +11,4 @@ str = str.replace(/\\/g, "\\\\"); | ||
exports.escapeString = escapeString; | ||
function string(str) { | ||
@@ -21,2 +18,4 @@ return "\"" + escapeString(str) + "\""; | ||
exports.string = string; | ||
function array(a) { | ||
@@ -26,2 +25,4 @@ return "[" + a + "]"; | ||
exports.array = array; | ||
function hash(pairs) { | ||
@@ -37,2 +38,3 @@ return "{" + pairs.join(", ") + "}"; | ||
return str; | ||
} | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXV0aWwvcXVvdGluZy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO1FBcUJnQixJQUFJLEdBQUosSUFBSTtRQUlKLE1BQU0sR0FBTixNQUFNO0FBekJ0QixTQUFTLFlBQVksQ0FBQyxHQUFHLEVBQUU7QUFDekIsS0FBRy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dHIucmVwbGFjZSgvXFxcXC9nLCBcIlxcXFxcXFxcXCIpO1xuICBzdHIgPSBzdHIucmVwbGFjZSgvXCIvZywgJ1xcXFxcIicpO1xuICBzdHIgPSBzdHIucmVwbGFjZSgvXFxuL2csIFwiXFxcXG5cIik7XG4gIHJldHVybiBzdHI7XG59XG5cbmV4cG9ydCB7IGVzY2FwZVN0cmluZyB9O1xuXG5mdW5jdGlvbiBzdHJpbmcoc3RyKSB7XG4gIHJldHVybiAnXCInICsgZXNjYXBlU3RyaW5nKHN0cikgKyAnXCInO1xufVxuXG5leHBvcnQgeyBzdHJpbmcgfTtcblxuZnVuY3Rpb24gYXJyYXkoYSkge1xuICByZXR1cm4gXCJbXCIgKyBhICsgXCJdXCI7XG59XG5cbmV4cG9ydCB7IGFycmF5IH07XG5cbmV4cG9ydCBmdW5jdGlvbiBoYXNoKHBhaXJzKSB7XG4gIHJldHVybiBcIntcIiArIHBhaXJzLmpvaW4oXCIsIFwiKSArIFwifVwiO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gcmVwZWF0KGNoYXJzLCB0aW1lcykge1xuICB2YXIgc3RyID0gXCJcIjtcbiAgd2hpbGUgKHRpbWVzLS0pIHtcbiAgICBzdHIgKz0gY2hhcnM7XG4gIH1cbiAgcmV0dXJuIHN0cjtcbn1cbiJdfQ== |
@@ -1,5 +0,11 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
var SafeString = require('./handlebars/safe-string'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
exports['default'] = SafeString['default']; | ||
var _handlebarsSafeString = require('./handlebars/safe-string'); | ||
var _handlebarsSafeString2 = _interopRequireDefault(_handlebarsSafeString); | ||
exports.default = _handlebarsSafeString2.default; | ||
module.exports = exports.default; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXV0aWwvc2FmZS1zdHJpbmcuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztvQ0FBdUIsMEJBQTBCIiwiZmlsZSI6Imh0bWxiYXJzLXV0aWwvc2FmZS1zdHJpbmcuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgU2FmZVN0cmluZyBmcm9tICcuL2hhbmRsZWJhcnMvc2FmZS1zdHJpbmcnO1xuXG5leHBvcnQgZGVmYXVsdCBTYWZlU3RyaW5nO1xuIl19 |
@@ -1,3 +0,2 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
exports.RenderState = RenderState; | ||
@@ -9,6 +8,4 @@ exports.blockFor = blockFor; | ||
var morph_utils = require('../htmlbars-util/morph-utils'); | ||
var _htmlbarsUtilMorphUtils = require("../htmlbars-util/morph-utils"); | ||
function RenderState(renderNode, morphList) { | ||
@@ -27,3 +24,2 @@ // The morph list that is no longer needed and can be | ||
this.handledMorphs = {}; | ||
this.collisions = undefined; | ||
@@ -87,2 +83,3 @@ // The morph to clear once rendering is complete. By | ||
} | ||
function renderAndCleanup(morph, env, options, shadowOptions, callback) { | ||
@@ -95,3 +92,2 @@ // The RenderState object is used to collect information about what the | ||
var renderState = options.renderState; | ||
renderState.collisions = undefined; | ||
renderState.shadowOptions = shadowOptions; | ||
@@ -168,3 +164,3 @@ | ||
morph_utils.visitChildren(morph.childNodes, destroyNode); | ||
_htmlbarsUtilMorphUtils.visitChildren(morph.childNodes, destroyNode); | ||
@@ -197,2 +193,3 @@ // TODO: Deal with logical children that are not in the DOM tree | ||
morph.morphList = null; | ||
} | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXV0aWwvdGVtcGxhdGUtdXRpbHMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtRQUVnQixXQUFXLEdBQVgsV0FBVztRQXdCWCxRQUFRLEdBQVIsUUFBUTtRQWdEUixnQkFBZ0IsR0FBaEIsZ0JBQWdCO1FBcURoQix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W0gPSBuZXh0O1xuICB9XG5cbiAgLy8gUmVtb3ZlIHRoZSBNb3JwaExpc3QgZnJvbSB0aGUgbW9ycGguXG4gIG1vcnBoTGlzdC5jbGVhcigpO1xuICBtb3JwaC5tb3JwaExpc3QgPSBudWxsO1xufVxuIl19 |
@@ -1,12 +0,18 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
var array_utils = require('./array-utils'); | ||
var _arrayUtils = require("./array-utils"); | ||
// The HTML elements in this list are speced by | ||
// http://www.w3.org/TR/html-markup/syntax.html#syntax-elements, | ||
// and will be forced to close regardless of if they have a | ||
// self-closing /> at the end. | ||
var voidTagNames = "area base br col command embed hr img input keygen link meta param source track wbr"; | ||
var voidMap = {}; | ||
array_utils.forEach(voidTagNames.split(" "), function (tagName) { | ||
_arrayUtils.forEach(voidTagNames.split(" "), function (tagName) { | ||
voidMap[tagName] = true; | ||
}); | ||
exports['default'] = voidMap; | ||
exports.default = voidMap; | ||
module.exports = exports.default; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXV0aWwvdm9pZC10YWctbmFtZXMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7MEJBQXdCLGVBQWU7Ozs7OztBQU12QyxJQUFJLFlBQVksR0FBRyxxRkFBcUYsQ0FBQztBQUN6RyxJQUFJLE9BQU8sR0FBRyxFQUFFLENBQUM7O0FBRWpCLFlBVFMsT0FBTyxDQVNSLFlBQVksQ0FBQyxLQUFLLENBQUMsR0FBRyxDQUFDLEVBQUUsVUFBUyxPQUFPLEVBQUU7QUFDakQsU0FBTyxDQUFDLE9BQU8sQ0FBQyxHQUFHLElBQUksQ0FBQztDQUN6QixDQUFDLENBQUM7O2tCQUVZLE9BQU8iLCJmaWxlIjoiaHRtbGJhcnMtdXRpbC92b2lkLXRhZy1uYW1lcy5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGZvckVhY2ggfSBmcm9tIFwiLi9hcnJheS11dGlsc1wiO1xuXG4vLyBUaGUgSFRNTCBlbGVtZW50cyBpbiB0aGlzIGxpc3QgYXJlIHNwZWNlZCBieVxuLy8gaHR0cDovL3d3dy53My5vcmcvVFIvaHRtbC1tYXJrdXAvc3ludGF4Lmh0bWwjc3ludGF4LWVsZW1lbnRzLFxuLy8gYW5kIHdpbGwgYmUgZm9yY2VkIHRvIGNsb3NlIHJlZ2FyZGxlc3Mgb2YgaWYgdGhleSBoYXZlIGFcbi8vIHNlbGYtY2xvc2luZyAvPiBhdCB0aGUgZW5kLlxudmFyIHZvaWRUYWdOYW1lcyA9IFwiYXJlYSBiYXNlIGJyIGNvbCBjb21tYW5kIGVtYmVkIGhyIGltZyBpbnB1dCBrZXlnZW4gbGluayBtZXRhIHBhcmFtIHNvdXJjZSB0cmFjayB3YnJcIjtcbnZhciB2b2lkTWFwID0ge307XG5cbmZvckVhY2godm9pZFRhZ05hbWVzLnNwbGl0KFwiIFwiKSwgZnVuY3Rpb24odGFnTmFtZSkge1xuICB2b2lkTWFwW3RhZ05hbWVdID0gdHJ1ZTtcbn0pO1xuXG5leHBvcnQgZGVmYXVsdCB2b2lkTWFwO1xuIl19 |
@@ -1,7 +0,2 @@ | ||
'use strict'; | ||
require('./htmlbars-syntax'); | ||
var compiler = require('./htmlbars-compiler/compiler'); | ||
var Walker = require('./htmlbars-syntax/walker'); | ||
exports.__esModule = true; | ||
/* | ||
@@ -12,3 +7,3 @@ * @overview HTMLBars | ||
* See https://raw.githubusercontent.com/tildeio/htmlbars/master/LICENSE | ||
* @version 0.13.34.c418c83b | ||
* @version v0.14.0 | ||
*/ | ||
@@ -18,4 +13,8 @@ | ||
exports.compile = compiler.compile; | ||
exports.compileSpec = compiler.compileSpec; | ||
exports.Walker = Walker['default']; | ||
require("./htmlbars-syntax"); | ||
var _htmlbarsCompilerCompiler = require("./htmlbars-compiler/compiler"); | ||
exports.compile = _htmlbarsCompilerCompiler.compile; | ||
exports.compileSpec = _htmlbarsCompilerCompiler.compileSpec; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7O1FBU08sbUJBQW1COzt3Q0FLbkIsOEJBQThCOztRQUduQyxPQUFPLDZCQUxQLE9BQU87UUFNUCxXQUFXLDZCQUxYLFdBQVciLCJmaWxlIjoiaHRtbGJhcnMuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogQG92ZXJ2aWV3ICBIVE1MQmFyc1xuICogQGNvcHlyaWdodCBDb3B5cmlnaHQgMjAxMS0yMDE0IFRpbGRlIEluYy4gYW5kIGNvbnRyaWJ1dG9yc1xuICogQGxpY2Vuc2UgICBMaWNlbnNlZCB1bmRlciBNSVQgbGljZW5zZVxuICogICAgICAgICAgICBTZWUgaHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL3RpbGRlaW8vaHRtbGJhcnMvbWFzdGVyL0xJQ0VOU0VcbiAqIEB2ZXJzaW9uICAgVkVSU0lPTl9TVFJJTkdfUExBQ0VIT0xERVJcbiAqL1xuXG4vLyBCcmVhayBjeWNsZXMgaW4gdGhlIG1vZHVsZSBsb2FkZXIuXG5pbXBvcnQgXCIuL2h0bWxiYXJzLXN5bnRheFwiO1xuXG5pbXBvcnQge1xuICBjb21waWxlLFxuICBjb21waWxlU3BlY1xufSBmcm9tIFwiLi9odG1sYmFycy1jb21waWxlci9jb21waWxlclwiO1xuXG5leHBvcnQge1xuICBjb21waWxlLFxuICBjb21waWxlU3BlY1xufTtcbiJdfQ== |
@@ -1,8 +0,11 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
var sanitize_attribute_value = require('./morph-attr/sanitize-attribute-value'); | ||
var prop = require('./dom-helper/prop'); | ||
var build_html_dom = require('./dom-helper/build-html-dom'); | ||
var htmlbars_util = require('./htmlbars-util'); | ||
var _morphAttrSanitizeAttributeValue = require("./morph-attr/sanitize-attribute-value"); | ||
var _domHelperProp = require("./dom-helper/prop"); | ||
var _domHelperBuildHtmlDom = require("./dom-helper/build-html-dom"); | ||
var _htmlbarsUtil = require("./htmlbars-util"); | ||
function getProperty() { | ||
@@ -13,3 +16,3 @@ return this.domHelper.getPropertyStrict(this.element, this.attrName); | ||
function updateProperty(value) { | ||
if (this._renderedInitially === true || !prop.isAttrRemovalValue(value)) { | ||
if (this._renderedInitially === true || !_domHelperProp.isAttrRemovalValue(value)) { | ||
// do not render if initial value is undefined or null | ||
@@ -27,3 +30,3 @@ this.domHelper.setPropertyStrict(this.element, this.attrName, value); | ||
function updateAttribute(value) { | ||
if (prop.isAttrRemovalValue(value)) { | ||
if (_domHelperProp.isAttrRemovalValue(value)) { | ||
this.domHelper.removeAttribute(this.element, this.attrName); | ||
@@ -40,3 +43,3 @@ } else { | ||
function updateAttributeNS(value) { | ||
if (prop.isAttrRemovalValue(value)) { | ||
if (_domHelperProp.isAttrRemovalValue(value)) { | ||
this.domHelper.removeAttribute(this.element, this.attrName); | ||
@@ -55,3 +58,3 @@ } else { | ||
this.domHelper = domHelper; | ||
this.namespace = namespace !== undefined ? namespace : htmlbars_util.getAttrNamespace(attrName); | ||
this.namespace = namespace !== undefined ? namespace : _htmlbarsUtil.getAttrNamespace(attrName); | ||
this.state = {}; | ||
@@ -77,3 +80,3 @@ this.isDirty = false; | ||
} else { | ||
var _normalizeProperty = prop.normalizeProperty(this.element, attrName); | ||
var _normalizeProperty = _domHelperProp.normalizeProperty(this.element, attrName); | ||
@@ -83,3 +86,3 @@ var normalized = _normalizeProperty.normalized; | ||
if (element.namespaceURI === build_html_dom.svgNamespace || attrName === "style" || type === "attr") { | ||
if (element.namespaceURI === _domHelperBuildHtmlDom.svgNamespace || attrName === "style" || type === "attr") { | ||
this._update = updateAttribute; | ||
@@ -103,3 +106,3 @@ this._get = getAttribute; | ||
if (this.escaped) { | ||
var sanitized = sanitize_attribute_value.sanitizeAttributeValue(this.domHelper, this.element, this.attrName, value); | ||
var sanitized = _morphAttrSanitizeAttributeValue.sanitizeAttributeValue(this.domHelper, this.element, this.attrName, value); | ||
this._update(sanitized, this.namespace); | ||
@@ -128,4 +131,4 @@ } else { | ||
exports['default'] = AttrMorph; | ||
exports.sanitizeAttributeValue = sanitize_attribute_value.sanitizeAttributeValue; | ||
exports.default = AttrMorph; | ||
exports.sanitizeAttributeValue = _morphAttrSanitizeAttributeValue.sanitizeAttributeValue; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm1vcnBoLWF0dHIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7K0NBQXVDLHVDQUF1Qzs7NkJBQ3hCLG1CQUFtQjs7cUNBQzVDLDZCQUE2Qjs7NEJBQ3pCLGlCQUFpQjs7QUFFbEQsU0FBUyxXQUFXLEdBQUc7QUFDckIsU0FBTyxJQUFJLENBQUMsU0FBUyxDQUFDLGlCQUFpQixDQUFDLElBQUksQ0FBQyxPQUFPLEVBQUUsSUFBSSxDQUFDLFFBQVEsQ0FBQyxDQUFDO0NBQ3RFOztBQUVELFNBQVMsY0FBYyxDQUFDLEtBQUssRUFBRTtBQUM3QixNQUFJLElBQUksQ0FBQyxrQkFBa0IsS0FBSyxJQUFJLElBQUksQ0FBQyxlQVRsQyxrQkFBa0IsQ0FTbUMsS0FBSyxDQUFDLEVBQUU7O0FBRWxFLFFBQUksQ0FBQyxTQUFTLENBQUMsaUJBQWlCLENBQUMsSUFBSSxDQUFDLE9BQU8sRUFBRSxJQUFJLENBQUMsUUFBUSxFQUFFLEtBQUssQ0FBQyxDQUFDO0dBQ3RFOztBQUVELE1BQUksQ0FBQyxrQkFBa0IsR0FBRyxJQUFJLENBQUM7Q0FDaEM7O0FBRUQsU0FBUyxZQUFZLEdBQUc7QUFDdEIsU0FBTyxJQUFJLENBQUMsU0FBUyxDQUFDLFlBQVksQ0FBQyxJQU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vbigpIHsgfTtcblxuQXR0ck1vcnBoLnByb3RvdHlwZS5kZXN0cm95ID0gZnVuY3Rpb24oKSB7XG4gIHRoaXMuZWxlbWVudCA9IG51bGw7XG4gIHRoaXMuZG9tSGVscGVyID0gbnVsbDtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IEF0dHJNb3JwaDtcblxuZXhwb3J0IHsgc2FuaXRpemVBdHRyaWJ1dGVWYWx1ZSB9O1xuIl19 |
@@ -1,4 +0,4 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
exports.sanitizeAttributeValue = sanitizeAttributeValue; | ||
/* jshint scripturl:true */ | ||
@@ -31,5 +31,7 @@ var badProtocols = { | ||
exports.badAttributes = badAttributes; | ||
var badAttributesForDataURI = { | ||
'src': true | ||
}; | ||
function sanitizeAttributeValue(dom, element, attribute, value) { | ||
@@ -61,3 +63,2 @@ var tagName; | ||
} | ||
exports.badAttributes = badAttributes; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm1vcnBoLWF0dHIvc2FuaXRpemUtYXR0cmlidXRlLXZhbHVlLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7UUFnQ2dCLHNCQUFzQixHQUF0QixzQkFBc0I7OztBQTlCdEMsSUFBSSxZQUFZLEdBQUc7QUFDakIsZUFBYSxFQUFFLElBQUk7QUFDbkIsYUFBVyxFQUFFLElBQUk7Q0FDbEIsQ0FBQzs7QUFFRixJQUFJLE9BQU8sR0FBRztBQUNaLEtBQUcsRUFBRSxJQUFJO0FBQ1QsUUFBTSxFQUFFLElBQUk7QUFDWixRQUFNLEVBQUUsSUFBSTtBQUNaLE9BQUssRUFBRSxJQUFJO0FBQ1gsVUFBUSxFQUFFLElBQUk7QUFDZCxRQUFNLEVBQUUsSUFBSTtBQUNaLFFBQU0sRUFBRSxJQUFJO0NBQ2IsQ0FBQzs7QUFFRixJQUFJLGlCQUFpQixHQUFHO0FBQ3RCLFNBQU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xuICBpZiAodmFsdWUgJiYgdmFsdWUudG9IVE1MKSB7XG4gICAgcmV0dXJuIHZhbHVlLnRvSFRNTCgpO1xuICB9XG5cbiAgaWYgKCh0YWdOYW1lID09PSBudWxsIHx8IGJhZFRhZ3NbdGFnTmFtZV0pICYmIGJhZEF0dHJpYnV0ZXNbYXR0cmlidXRlXSkge1xuICAgIHZhciBwcm90b2NvbCA9IGRvbS5wcm90b2NvbEZvclVSTCh2YWx1ZSk7XG4gICAgaWYgKGJhZFByb3RvY29sc1twcm90b2NvbF0gPT09IHRydWUpIHtcbiAgICAgIHJldHVybiAndW5zYWZlOicgKyB2YWx1ZTtcbiAgICB9XG4gIH1cblxuICBpZiAoYmFkVGFnc0ZvckRhdGFVUklbdGFnTmFtZV0gJiYgYmFkQXR0cmlidXRlc0ZvckRhdGFVUklbYXR0cmlidXRlXSkge1xuICAgIHJldHVybiAndW5zYWZlOicgKyB2YWx1ZTtcbiAgfVxuXG4gIHJldHVybiB2YWx1ZTtcbn1cbiJdfQ== |
@@ -1,5 +0,7 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
var utils = require('./morph-range/utils'); | ||
var _morphRangeUtils = require('./morph-range/utils'); | ||
// constructor just initializes the fields | ||
// use one of the static initializers to create a valid morph. | ||
function Morph(domHelper, contextualElement) { | ||
@@ -123,4 +125,4 @@ this.domHelper = domHelper; | ||
if (parentNode !== null) { | ||
utils.insertBefore(parentNode, firstNode, lastNode, previousFirstNode); | ||
utils.clear(parentNode, previousFirstNode, this.lastNode); | ||
_morphRangeUtils.insertBefore(parentNode, firstNode, lastNode, previousFirstNode); | ||
_morphRangeUtils.clear(parentNode, previousFirstNode, this.lastNode); | ||
} | ||
@@ -148,3 +150,3 @@ } | ||
utils.clear(parentNode, firstNode, lastNode); | ||
_morphRangeUtils.clear(parentNode, firstNode, lastNode); | ||
}; | ||
@@ -257,9 +259,11 @@ | ||
Morph.prototype.insertBeforeNode = function Morph$insertBeforeNode(parentNode, refNode) { | ||
utils.insertBefore(parentNode, this.firstNode, this.lastNode, refNode); | ||
_morphRangeUtils.insertBefore(parentNode, this.firstNode, this.lastNode, refNode); | ||
}; | ||
Morph.prototype.appendToNode = function Morph$appendToNode(parentNode) { | ||
utils.insertBefore(parentNode, this.firstNode, this.lastNode, null); | ||
_morphRangeUtils.insertBefore(parentNode, this.firstNode, this.lastNode, null); | ||
}; | ||
exports['default'] = Morph; | ||
exports.default = Morph; | ||
module.exports = exports.default; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm1vcnBoLXJhbmdlLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OytCQUFvQyxxQkFBcUI7Ozs7QUFJekQsU0FBUyxLQUFLLENBQUMsU0FBUyxFQUFFLGlCQUFpQixFQUFFO0FBQzNDLE1BQUksQ0FBQyxTQUFTLEdBQUcsU0FBUyxDQUFDOztBQUUzQixNQUFJLENBQUMsaUJBQWlCLEdBQUcsaUJBQWlCLENBQUM7OztBQUczQyxNQUFJLENBQUMsU0FBUyxHQUFHLElBQUksQ0FBQztBQUN0QixNQUFJLENBQUMsUUFBUSxHQUFJLElBQUksQ0FBQzs7O0FBR3RCLE1BQUksQ0FBQyxlQUFlLEdBQUcsS0FBSyxDQUFDOzs7QUFHN0IsTUFBSSxDQUFDLGVBQWUsR0FBRyxJQUFJLENBQUM7QUFDNUIsTUFBSSxDQUFDLGFBQWEsR0FBSyxJQUFJLENBQUM7QUFDNUIsTUFBSSxDQUFDLFNBQVMsR0FBUyxJQUFJLENBQUM7Q0FDN0I7O0FBRUQsS0FBSyxDQUFDLEtBQUssR0FBRyxVQUFVLFNBQVMsRUFBRSxpQkFBaUIsRUFBRTtBQUNwRCxNQUFJLEtBQUssR0FBRyxJQUFJLEtBQUssQ0FBQyxTQUFTLEVBQUUsaUJBQWlCLENBQUMsQ0FBQztBQUNwRCxPQUFLLENBQUMsS0FBSyxFQUFFLENBQUM7QUFDZCxTQUFPL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1xufTtcblxuTW9ycGgucHJvdG90eXBlLmFwcGVuZFRvTm9kZSA9IGZ1bmN0aW9uIE1vcnBoJGFwcGVuZFRvTm9kZShwYXJlbnROb2RlKSB7XG4gIGluc2VydEJlZm9yZShwYXJlbnROb2RlLCB0aGlzLmZpcnN0Tm9kZSwgdGhpcy5sYXN0Tm9kZSwgbnVsbCk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBNb3JwaDtcbiJdfQ== |
@@ -1,5 +0,7 @@ | ||
'use strict'; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
var Morph = require('./morph-range'); | ||
var _morphRange = require('./morph-range'); | ||
var _morphRange2 = _interopRequireDefault(_morphRange); | ||
(function (root, factory) { | ||
@@ -13,4 +15,5 @@ if (typeof define === 'function' && define.amd) { | ||
} | ||
})(undefined, function () { | ||
return Morph['default']; | ||
}); | ||
})(this, function () { | ||
return _morphRange2.default; | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm1vcnBoLXJhbmdlLnVtZC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzswQkFBa0IsZUFBZTs7OztBQUVqQyxBQUFDLENBQUEsVUFBVSxJQUFJLEVBQUUsT0FBTyxFQUFFO0FBQ3hCLE1BQUksT0FBTyxNQUFNLEtBQUssVUFBVSxJQUFJLE1BQU0sQ0FBQyxHQUFHLEVBQUU7QUFDOUMsVUFBTSxDQUFDLEVBQUUsRUFBRSxPQUFPLENBQUMsQ0FBQztHQUNyQixNQUFNLElBQUksT0FBTyxPQUFPLEtBQUssUUFBUSxFQUFFO0FBQ3RDLFVBQU0sQ0FBQyxPQUFPLEdBQUcsT0FBTyxFQUFFLENBQUM7R0FDNUIsTUFBTTtBQUNMLFFBQUksQ0FBQyxLQUFLLEdBQUcsT0FBTyxFQUFFLENBQUM7R0FDeEI7Q0FDRixDQUFBLENBQUMsSUFBSSxFQUFFLFlBQVk7QUFDbEIsOEJBQWE7Q0FDZCxDQUFDLENBQUUiLCJmaWxlIjoibW9ycGgtcmFuZ2UudW1kLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IE1vcnBoIGZyb20gJy4vbW9ycGgtcmFuZ2UnO1xuXG4oZnVuY3Rpb24gKHJvb3QsIGZhY3RvcnkpIHtcbiAgaWYgKHR5cGVvZiBkZWZpbmUgPT09ICdmdW5jdGlvbicgJiYgZGVmaW5lLmFtZCkge1xuICAgIGRlZmluZShbXSwgZmFjdG9yeSk7XG4gIH0gZWxzZSBpZiAodHlwZW9mIGV4cG9ydHMgPT09ICdvYmplY3QnKSB7XG4gICAgbW9kdWxlLmV4cG9ydHMgPSBmYWN0b3J5KCk7XG4gIH0gZWxzZSB7XG4gICAgcm9vdC5Nb3JwaCA9IGZhY3RvcnkoKTtcbiAgfVxufSh0aGlzLCBmdW5jdGlvbiAoKSB7XG4gIHJldHVybiBNb3JwaDtcbn0pKTtcbiJdfQ== |
@@ -1,4 +0,4 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
var utils = require('./utils'); | ||
var _utils = require('./utils'); | ||
@@ -50,7 +50,7 @@ function MorphList() { | ||
utils.insertBefore(parentNode, morph.firstNode, morph.lastNode, referenceNode); | ||
_utils.insertBefore(parentNode, morph.firstNode, morph.lastNode, referenceNode); | ||
// was not in list mode replace current content | ||
if (!this.firstChildMorph) { | ||
utils.clear(this.mountedMorph.firstNode.parentNode, this.mountedMorph.firstNode, this.mountedMorph.lastNode); | ||
_utils.clear(this.mountedMorph.firstNode.parentNode, this.mountedMorph.firstNode, this.mountedMorph.lastNode); | ||
} | ||
@@ -88,2 +88,4 @@ } | ||
exports['default'] = MorphList; | ||
exports.default = MorphList; | ||
module.exports = exports.default; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm1vcnBoLXJhbmdlL21vcnBoLWxpc3QuanMiXSwibmFtZXMiOltdLC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biAgICBwcmV2aW91c01vcnBoLm5leHRNb3JwaCA9IG1vcnBoO1xuICAgIG1vcnBoLnByZXZpb3VzTW9ycGggPSBwcmV2aW91c01vcnBoO1xuICB9IGVsc2Uge1xuICAgIHRoaXMuZmlyc3RDaGlsZE1vcnBoID0gbW9ycGg7XG4gIH1cblxuICBpZiAocmVmZXJlbmNlTW9ycGgpIHtcbiAgICByZWZlcmVuY2VNb3JwaC5wcmV2aW91c01vcnBoID0gbW9ycGg7XG4gICAgbW9ycGgubmV4dE1vcnBoID0gcmVmZXJlbmNlTW9ycGg7XG4gIH0gZWxzZSB7XG4gICAgdGhpcy5sYXN0Q2hpbGRNb3JwaCA9IG1vcnBoO1xuICB9XG5cbiAgdGhpcy5maXJzdENoaWxkTW9ycGguX3N5bmNGaXJzdE5vZGUoKTtcbiAgdGhpcy5sYXN0Q2hpbGRNb3JwaC5fc3luY0xhc3ROb2RlKCk7XG59O1xuXG5wcm90b3R5cGUucmVtb3ZlQ2hpbGRNb3JwaCA9IGZ1bmN0aW9uIE1vcnBoTGlzdCRyZW1vdmVDaGlsZE1vcnBoKG1vcnBoKSB7XG4gIGlmIChtb3JwaC5wYXJlbnRNb3JwaExpc3QgIT09IHRoaXMpIHtcbiAgICB0aHJvdyBuZXcgRXJyb3IoXCJDYW5ub3QgcmVtb3ZlIGEgbW9ycGggZnJvbSBhIHBhcmVudCBpdCBpcyBub3QgaW5zaWRlIG9mXCIpO1xuICB9XG5cbiAgbW9ycGguZGVzdHJveSgpO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgTW9ycGhMaXN0O1xuIl19 |
@@ -1,5 +0,7 @@ | ||
'use strict'; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
var MorphList = require('./morph-list'); | ||
var _morphList = require('./morph-list'); | ||
var _morphList2 = _interopRequireDefault(_morphList); | ||
(function (root, factory) { | ||
@@ -13,4 +15,5 @@ if (typeof define === 'function' && define.amd) { | ||
} | ||
})(undefined, function () { | ||
return MorphList['default']; | ||
}); | ||
})(this, function () { | ||
return _morphList2.default; | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm1vcnBoLXJhbmdlL21vcnBoLWxpc3QudW1kLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O3lCQUFzQixjQUFjOzs7O0FBRXBDLEFBQUMsQ0FBQSxVQUFVLElBQUksRUFBRSxPQUFPLEVBQUU7QUFDeEIsTUFBSSxPQUFPLE1BQU0sS0FBSyxVQUFVLElBQUksTUFBTSxDQUFDLEdBQUcsRUFBRTtBQUM5QyxVQUFNLENBQUMsRUFBRSxFQUFFLE9BQU8sQ0FBQyxDQUFDO0dBQ3JCLE1BQU0sSUFBSSxPQUFPLE9BQU8sS0FBSyxRQUFRLEVBQUU7QUFDdEMsVUFBTSxDQUFDLE9BQU8sR0FBRyxPQUFPLEVBQUUsQ0FBQztHQUM1QixNQUFNO0FBQ0wsUUFBSSxDQUFDLFNBQVMsR0FBRyxPQUFPLEVBQUUsQ0FBQztHQUM1QjtDQUNGLENBQUEsQ0FBQyxJQUFJLEVBQUUsWUFBWTtBQUNsQiw2QkFBaUI7Q0FDbEIsQ0FBQyxDQUFFIiwiZmlsZSI6Im1vcnBoLXJhbmdlL21vcnBoLWxpc3QudW1kLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IE1vcnBoTGlzdCBmcm9tICcuL21vcnBoLWxpc3QnO1xuXG4oZnVuY3Rpb24gKHJvb3QsIGZhY3RvcnkpIHtcbiAgaWYgKHR5cGVvZiBkZWZpbmUgPT09ICdmdW5jdGlvbicgJiYgZGVmaW5lLmFtZCkge1xuICAgIGRlZmluZShbXSwgZmFjdG9yeSk7XG4gIH0gZWxzZSBpZiAodHlwZW9mIGV4cG9ydHMgPT09ICdvYmplY3QnKSB7XG4gICAgbW9kdWxlLmV4cG9ydHMgPSBmYWN0b3J5KCk7XG4gIH0gZWxzZSB7XG4gICAgcm9vdC5Nb3JwaExpc3QgPSBmYWN0b3J5KCk7XG4gIH1cbn0odGhpcywgZnVuY3Rpb24gKCkge1xuICByZXR1cm4gTW9ycGhMaXN0O1xufSkpO1xuIl19 |
@@ -1,5 +0,5 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
exports.clear = clear; | ||
exports.insertBefore = insertBefore; | ||
// inclusive of both nodes | ||
@@ -34,2 +34,3 @@ function clear(parentNode, firstNode, lastNode) { | ||
} while (node); | ||
} | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm1vcnBoLXJhbmdlL3V0aWxzLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7UUFDZ0IsS0FBSyxHQUFMLEtBQUs7UUFlTCxZQUFZLEdBQVosWUFBWTs7O0FBZnJCLFNBQVMsS0FBSyxDQUFDLFVBQVUsRUFBRSxTQUFTLEVBQUUsUUFBUSxFQUFFO0FBQ3JELE1BQUksQ0FBQyxVQUFVLEVBQUU7QUFBRSxXQUFPO0dBQUU7O0FBRTVCLE1BQUksSUFBSSxHQUFHLFNBQVMsQ0FBQztBQUNyQixNQUFJLFFBQVEsQ0FBQztBQUNiLEtBQUc7QUFDRCxZQUFRLEdBQUcsSUFBSSxDQUFDLFdBQVcsQ0FBQztBQUM1QixjQUFVLENBQUMsV0FBVyxDQUFDLElBQUksQ0FBQyxDQUFDO0FBQzdCLFFBQUksSUFBSSxLQUFLLFFBQVEsRUFBRTtBQUNyQixZQUFNO0tBQ1A7QUFDRCxRQUFJLEdBQUcsUUFBUSxDQUFDO0dBQ2pCLFFBQVEsSUFBSSxFQUFFO0NBQ2hCOztBQUVNLFNBQVMsWUFBWSxDQUFDLFVBQVUsRUFBRSxTQUFTLEVBQUUsUUFBUSxFQUFFLE9BQU8sRUFBRTtBQUNyRSxNQUFJLElBQUksR0FBRyxTQUFTLENBQUM7QUFDckIsTUFBSSxRQUFRLENB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0gbGFzdE5vZGUpIHtcbiAgICAgIGJyZWFrO1xuICAgIH1cbiAgICBub2RlID0gbmV4dE5vZGU7XG4gIH0gd2hpbGUgKG5vZGUpO1xufVxuIl19 |
@@ -1,20 +0,38 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
var EventedTokenizer = require('./simple-html-tokenizer/evented-tokenizer'); | ||
var Tokenizer = require('./simple-html-tokenizer/tokenizer'); | ||
var tokenize = require('./simple-html-tokenizer/tokenize'); | ||
var Generator = require('./simple-html-tokenizer/generator'); | ||
var generate = require('./simple-html-tokenizer/generate'); | ||
var tokens = require('./simple-html-tokenizer/tokens'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
/*jshint boss:true*/ | ||
exports.EventedTokenizer = EventedTokenizer['default']; | ||
exports.Tokenizer = Tokenizer['default']; | ||
exports.tokenize = tokenize['default']; | ||
exports.Generator = Generator['default']; | ||
exports.generate = generate['default']; | ||
exports.StartTag = tokens.StartTag; | ||
exports.EndTag = tokens.EndTag; | ||
exports.Chars = tokens.Chars; | ||
exports.Comment = tokens.Comment; | ||
var _simpleHtmlTokenizerEventedTokenizer = require('./simple-html-tokenizer/evented-tokenizer'); | ||
var _simpleHtmlTokenizerEventedTokenizer2 = _interopRequireDefault(_simpleHtmlTokenizerEventedTokenizer); | ||
var _simpleHtmlTokenizerTokenizer = require('./simple-html-tokenizer/tokenizer'); | ||
var _simpleHtmlTokenizerTokenizer2 = _interopRequireDefault(_simpleHtmlTokenizerTokenizer); | ||
var _simpleHtmlTokenizerTokenize = require('./simple-html-tokenizer/tokenize'); | ||
var _simpleHtmlTokenizerTokenize2 = _interopRequireDefault(_simpleHtmlTokenizerTokenize); | ||
var _simpleHtmlTokenizerGenerator = require('./simple-html-tokenizer/generator'); | ||
var _simpleHtmlTokenizerGenerator2 = _interopRequireDefault(_simpleHtmlTokenizerGenerator); | ||
var _simpleHtmlTokenizerGenerate = require('./simple-html-tokenizer/generate'); | ||
var _simpleHtmlTokenizerGenerate2 = _interopRequireDefault(_simpleHtmlTokenizerGenerate); | ||
var _simpleHtmlTokenizerTokens = require('./simple-html-tokenizer/tokens'); | ||
exports.EventedTokenizer = _simpleHtmlTokenizerEventedTokenizer2.default; | ||
exports.Tokenizer = _simpleHtmlTokenizerTokenizer2.default; | ||
exports.tokenize = _simpleHtmlTokenizerTokenize2.default; | ||
exports.Generator = _simpleHtmlTokenizerGenerator2.default; | ||
exports.generate = _simpleHtmlTokenizerGenerate2.default; | ||
exports.StartTag = _simpleHtmlTokenizerTokens.StartTag; | ||
exports.EndTag = _simpleHtmlTokenizerTokens.EndTag; | ||
exports.Chars = _simpleHtmlTokenizerTokens.Chars; | ||
exports.Comment = _simpleHtmlTokenizerTokens.Comment; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNpbXBsZS1odG1sLXRva2VuaXplci5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7bURBQzZCLDJDQUEyQzs7Ozs0Q0FDbEQsbUNBQW1DOzs7OzJDQUNwQyxrQ0FBa0M7Ozs7NENBQ2pDLG1DQUFtQzs7OzsyQ0FDcEMsa0NBQWtDOzs7O3lDQUNOLGdDQUFnQzs7UUFFeEUsZ0JBQWdCO1FBQUUsU0FBUztRQUFFLFFBQVE7UUFBRSxTQUFTO1FBQUUsUUFBUTtRQUFFLFFBQVEsOEJBRnBFLFFBQVE7UUFFOEQsTUFBTSw4QkFGbEUsTUFBTTtRQUU4RCxLQUFLLDhCQUZqRSxLQUFLO1FBRThELE9BQU8sOEJBRm5FLE9BQU8iLCJmaWxlIjoic2ltcGxlLWh0bWwtdG9rZW5pemVyLmpzIiwic291cmNlc0NvbnRlbnQiOlsiLypqc2hpbnQgYm9zczp0cnVlKi9cbmltcG9ydCBFdmVudGVkVG9rZW5pemVyIGZyb20gJy4vc2ltcGxlLWh0bWwtdG9rZW5pemVyL2V2ZW50ZWQtdG9rZW5pemVyJztcbmltcG9ydCBUb2tlbml6ZXIgZnJvbSAnLi9zaW1wbGUtaHRtbC10b2tlbml6ZXIvdG9rZW5pemVyJztcbmltcG9ydCB0b2tlbml6ZSBmcm9tICcuL3NpbXBsZS1odG1sLXRva2VuaXplci90b2tlbml6ZSc7XG5pbXBvcnQgR2VuZXJhdG9yIGZyb20gJy4vc2ltcGxlLWh0bWwtdG9rZW5pemVyL2dlbmVyYXRvcic7XG5pbXBvcnQgZ2VuZXJhdGUgZnJvbSAnLi9zaW1wbGUtaHRtbC10b2tlbml6ZXIvZ2VuZXJhdGUnO1xuaW1wb3J0IHsgU3RhcnRUYWcsIEVuZFRhZywgQ2hhcnMsIENvbW1lbnQgfSBmcm9tICcuL3NpbXBsZS1odG1sLXRva2VuaXplci90b2tlbnMnO1xuXG5leHBvcnQgeyBFdmVudGVkVG9rZW5pemVyLCBUb2tlbml6ZXIsIHRva2VuaXplLCBHZW5lcmF0b3IsIGdlbmVyYXRlLCBTdGFydFRhZywgRW5kVGFnLCBDaGFycywgQ29tbWVudCB9O1xuIl19 |
@@ -1,6 +0,5 @@ | ||
'use strict'; | ||
/* global define:false, module:false */ | ||
var simple_html_tokenizer = require('./simple-html-tokenizer'); | ||
var _simpleHtmlTokenizer = require('./simple-html-tokenizer'); | ||
/* global define:false, module:false */ | ||
(function (root, factory) { | ||
@@ -14,14 +13,15 @@ if (typeof define === 'function' && define.amd) { | ||
} | ||
})(undefined, function () { | ||
})(this, function () { | ||
return { | ||
EventedTokenizer: simple_html_tokenizer.EventedTokenizer, | ||
Tokenizer: simple_html_tokenizer.Tokenizer, | ||
tokenize: simple_html_tokenizer.tokenize, | ||
Generator: simple_html_tokenizer.Generator, | ||
generate: simple_html_tokenizer.generate, | ||
StartTag: simple_html_tokenizer.StartTag, | ||
EndTag: simple_html_tokenizer.EndTag, | ||
Chars: simple_html_tokenizer.Chars, | ||
Comment: simple_html_tokenizer.Comment | ||
EventedTokenizer: _simpleHtmlTokenizer.EventedTokenizer, | ||
Tokenizer: _simpleHtmlTokenizer.Tokenizer, | ||
tokenize: _simpleHtmlTokenizer.tokenize, | ||
Generator: _simpleHtmlTokenizer.Generator, | ||
generate: _simpleHtmlTokenizer.generate, | ||
StartTag: _simpleHtmlTokenizer.StartTag, | ||
EndTag: _simpleHtmlTokenizer.EndTag, | ||
Chars: _simpleHtmlTokenizer.Chars, | ||
Comment: _simpleHtmlTokenizer.Comment | ||
}; | ||
}); | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNpbXBsZS1odG1sLXRva2VuaXplci51bWQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7bUNBR08seUJBQXlCOztBQUVoQyxBQUFDLENBQUEsVUFBVSxJQUFJLEVBQUUsT0FBTyxFQUFFO0FBQ3hCLE1BQUksT0FBTyxNQUFNLEtBQUssVUFBVSxJQUFJLE1BQU0sQ0FBQyxHQUFHLEVBQUU7QUFDOUMsVUFBTSxDQUFDLEVBQUUsRUFBRSxPQUFPLENBQUMsQ0FBQztHQUNyQixNQUFNLElBQUksT0FBTyxPQUFPLEtBQUssUUFBUSxFQUFFO0FBQ3RDLFVBQU0sQ0FBQyxPQUFPLEdBQUcsT0FBTyxFQUFFLENBQUM7R0FDNUIsTUFBTTtBQUNMLFFBQUksQ0FBQyxjQUFjLEdBQUcsT0FBTyxFQUFFLENBQUM7R0FDakM7Q0FDRixDQUFBLENBQUMsSUFBSSxFQUFFLFlBQVk7QUFDbEIsU0FBTztBQUNMLG9CQUFnQix1QkFibEIsZ0JBQWdCLEFBYW9CO0FBQ2xDLGFBQVMsdUJBZE8sU0FBUyxBQWNMO0FBQ3BCLFlBQVEsdUJBZm1CLFFBQVEsQUFlakI7QUFDbEIsYUFBUyx1QkFoQjRCLFNBQVMsQUFnQjFCO0FBQ3BCLFlBQVEsdUJBakJ3QyxRQUFRLEFBaUJ0QztBQUNsQixZQUFRLHVCQWxCa0QsUUF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GFnOiBTdGFydFRhZyxcbiAgICBFbmRUYWc6IEVuZFRhZyxcbiAgICBDaGFyczogQ2hhcnMsXG4gICAgQ29tbWVudDogQ29tbWVudFxuICB9O1xufSkpO1xuIl19 |
@@ -1,4 +0,3 @@ | ||
'use strict'; | ||
exports['default'] = { | ||
exports.__esModule = true; | ||
exports.default = { | ||
quot: [34], | ||
@@ -9,2 +8,4 @@ amp: [38], | ||
gt: [62] | ||
}; | ||
}; | ||
module.exports = exports.default; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNpbXBsZS1odG1sLXRva2VuaXplci9jaGFyLXJlZnMvbWluLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7a0JBQWU7QUFDYixNQUFJLEVBQUUsQ0FBQyxFQUFFLENBQUM7QUFDVixLQUFHLEVBQUUsQ0FBQyxFQUFFLENBQUM7QUFDVCxNQUFJLEVBQUUsQ0FBQyxFQUFFLENBQUM7QUFDVixJQUFFLEVBQUUsQ0FBQyxFQUFFLENBQUM7QUFDUixJQUFFLEVBQUUsQ0FBQyxFQUFFLENBQUM7Q0FDVCIsImZpbGUiOiJzaW1wbGUtaHRtbC10b2tlbml6ZXIvY2hhci1yZWZzL21pbi5qcyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBkZWZhdWx0IHtcbiAgcXVvdDogWzM0XSxcbiAgYW1wOiBbMzhdLFxuICBhcG9zOiBbMzldLFxuICBsdDogWzYwXSxcbiAgZ3Q6IFs2Ml1cbn07XG4iXX0= |
@@ -1,3 +0,2 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
function EntityParser(namedCodepoints) { | ||
@@ -32,2 +31,4 @@ this.namedCodepoints = namedCodepoints; | ||
exports['default'] = EntityParser; | ||
exports.default = EntityParser; | ||
module.exports = exports.default; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNpbXBsZS1odG1sLX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c2VJbnQobWF0Y2hlc1sxXSwgMTYpKTtcbiAgfVxuICBtYXRjaGVzID0gaW5wdXQubWF0Y2goL14jKFswLTldKyk7Lyk7XG4gIGlmIChtYXRjaGVzKSB7XG4gICAgdG9rZW5pemVyLmluZGV4ICs9IG1hdGNoZXNbMF0ubGVuZ3RoO1xuICAgIHJldHVybiBTdHJpbmcuZnJvbUNoYXJDb2RlKHBhcnNlSW50KG1hdGNoZXNbMV0sIDEwKSk7XG4gIH1cbiAgbWF0Y2hlcyA9IGlucHV0Lm1hdGNoKC9eKFtBLVphLXpdKyk7Lyk7XG4gIGlmIChtYXRjaGVzKSB7XG4gICAgdmFyIGNvZGVwb2ludHMgPSB0aGlzLm5hbWVkQ29kZXBvaW50c1ttYXRjaGVzWzFdXTtcbiAgICBpZiAoY29kZXBvaW50cykge1xuICAgICAgdG9rZW5pemVyLmluZGV4ICs9IG1hdGNoZXNbMF0ubGVuZ3RoO1xuICAgICAgZm9yICh2YXIgaSA9IDAsIGJ1ZmZlciA9ICcnOyBpIDwgY29kZXBvaW50cy5sZW5ndGg7IGkrKykge1xuICAgICAgICBidWZmZXIgKz0gU3RyaW5nLmZyb21DaGFyQ29kZShjb2RlcG9pbnRzW2ldKTtcbiAgICAgIH1cbiAgICAgIHJldHVybiBidWZmZXI7XG4gICAgfVxuICB9XG59O1xuXG5leHBvcnQgZGVmYXVsdCBFbnRpdHlQYXJzZXI7XG4iXX0= |
@@ -1,4 +0,4 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
var utils = require('./utils'); | ||
var _utils = require('./utils'); | ||
@@ -43,3 +43,3 @@ function EventedTokenizer(delegate, entityParser) { | ||
tokenizePart: function (input) { | ||
this.input += utils.preprocessInput(input); | ||
this.input += _utils.preprocessInput(input); | ||
@@ -128,3 +128,3 @@ while (this.index < this.input.length) { | ||
this.state = 'endTagOpen'; | ||
} else if (utils.isAlpha(char)) { | ||
} else if (_utils.isAlpha(char)) { | ||
this.state = 'tagName'; | ||
@@ -210,3 +210,3 @@ this.delegate.beginStartTag(); | ||
if (utils.isSpace(char)) { | ||
if (_utils.isSpace(char)) { | ||
this.state = 'beforeAttributeName'; | ||
@@ -226,3 +226,3 @@ } else if (char === '/') { | ||
if (utils.isSpace(char)) { | ||
if (_utils.isSpace(char)) { | ||
return; | ||
@@ -244,3 +244,3 @@ } else if (char === '/') { | ||
if (utils.isSpace(char)) { | ||
if (_utils.isSpace(char)) { | ||
this.state = 'afterAttributeName'; | ||
@@ -264,3 +264,3 @@ } else if (char === '/') { | ||
if (utils.isSpace(char)) { | ||
if (_utils.isSpace(char)) { | ||
return; | ||
@@ -288,3 +288,3 @@ } else if (char === '/') { | ||
if (utils.isSpace(char)) {} else if (char === '"') { | ||
if (_utils.isSpace(char)) {} else if (char === '"') { | ||
this.state = 'attributeValueDoubleQuoted'; | ||
@@ -336,3 +336,3 @@ this.delegate.beginAttributeValue(true); | ||
if (utils.isSpace(char)) { | ||
if (_utils.isSpace(char)) { | ||
this.delegate.finishAttributeValue(); | ||
@@ -354,3 +354,3 @@ this.state = 'beforeAttributeName'; | ||
if (utils.isSpace(char)) { | ||
if (_utils.isSpace(char)) { | ||
this.consume(); | ||
@@ -386,3 +386,3 @@ this.state = 'beforeAttributeName'; | ||
if (utils.isAlpha(char)) { | ||
if (_utils.isAlpha(char)) { | ||
this.state = 'tagName'; | ||
@@ -396,2 +396,4 @@ this.delegate.beginEndTag(); | ||
exports['default'] = EventedTokenizer; | ||
exports.default = EventedTokenizer; | ||
module.exports = exports.default; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNpbXBsZS1odG1sLXRva2VuaXplci9ldmVudGVkLXRva2VuaXplci5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztxQkFBa0QsU0FBUzs7QUFFM0QsU0FBUyxnQkFBZ0IsQ0FBQyxRQUFRLEVBQUUsWUFBWSxFQUFFO0FBQ2hELE1BQUksQ0FBQyxRQUFRL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ID0gJ3RhZ05hbWUnO1xuICAgICAgICB0aGlzLmRlbGVnYXRlLmJlZ2luRW5kVGFnKCk7XG4gICAgICAgIHRoaXMuZGVsZWdhdGUuYXBwZW5kVG9UYWdOYW1lKGNoYXIudG9Mb3dlckNhc2UoKSk7XG4gICAgICB9XG4gICAgfVxuICB9XG59O1xuXG5leHBvcnQgZGVmYXVsdCBFdmVudGVkVG9rZW5pemVyO1xuIl19 |
@@ -1,11 +0,16 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
exports.default = generate; | ||
var Generator = require('./generator'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
var _generator = require('./generator'); | ||
var _generator2 = _interopRequireDefault(_generator); | ||
exports['default'] = generate; | ||
function generate(tokens) { | ||
var generator = new Generator['default'](); | ||
var generator = new _generator2.default(); | ||
return generator.generate(tokens); | ||
} | ||
} | ||
module.exports = exports.default; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNpbXBsZS1odG1sLXRva2VuaXplci9nZW5lcmF0ZS5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO2tCQUV3QixRQUFROzs7O3lCQUZWLGFBQWE7Ozs7QUFFcEIsU0FBUyxRQUFRLENBQUMsTUFBTSxFQUFFO0FBQ3ZDLE1BQUksU0FBUyxHQUFHLHlCQUFlLENBQUM7QUFDaEMsU0FBTyxTQUFTLENBQUMsUUFBUSxDQUFDLE1BQU0sQ0FBQyxDQUFDO0NBQ25DIiwiZmlsZSI6InNpbXBsZS1odG1sLXRva2VuaXplci9nZW5lcmF0ZS5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBHZW5lcmF0b3IgZnJvbSAnLi9nZW5lcmF0b3InO1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBnZW5lcmF0ZSh0b2tlbnMpIHtcbiAgdmFyIGdlbmVyYXRvciA9IG5ldyBHZW5lcmF0b3IoKTtcbiAgcmV0dXJuIGdlbmVyYXRvci5nZW5lcmF0ZSh0b2tlbnMpO1xufVxuIl19 |
@@ -1,3 +0,2 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
var escape = (function () { | ||
@@ -97,2 +96,4 @@ var test = /[&<>"'`]/; | ||
exports['default'] = Generator; | ||
exports.default = Generator; | ||
module.exports = exports.default; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNpbXBsZS1odG1sLXRva2VuaXplci9nZW5lcmF0b3IuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLElBQUksTUFBTSxHQUFLLENBQUEsWUFBWTtBQUN6QixNQUFJLElBQUksR0FBRyxVQUFVLENBQUM7QUFDdEIsTUFBSSxPQUFPLEdBQUcsV0FBVyxDQUFDO0FBQzFCLE1BQUksR0FBRyxHQUFHO0FBQ1IsT0FBRyxFQUFFLE9BQU87QUFDWixPQUFHLEVBQUUsTUFBTTtBQUNYLE9BQUcsRUFBRSxNQUFNO0FBQ1gsUUFBRyxFQUFFLFFBQVE7QUFDYixPQUFHLEVBQUUsUUFBUTtBQUNiLE9BQUcsRUFBRSxRQUFRO0dBQ2QsQ0FBQztBQUNGLFdBQVMsVUFBVSxDQUFDLElBQUksRUFBRTtBQUN4QixXQUFPLEdBQUcsQ0FBQyxJQUFJLENBQUMsQ0FBQztHQUNsQjtBQUNELFNBQU8sU0FBUyxNQUFNLENBQUMsTUFBTSxFQUFFO0FBQzdCLFFBQUcsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxFQUFFO0FBQ3JCLGFBQU8sTUFBTSxDQUFDO0tBQ2Y7QUFDRCxXQUFPLE1BQU0sQ0FBQyxPQUFPLENBQUMsT0FBTyxFQUFFLFVBQVUsQ0FBQyxDQUFDO0dBQzVDLENBQUM7Q0FDSCxDQUFBLEVBQUUsQUFBQyxDQUFDOztBQUVMLFNBQV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AgcmV0dXJuIFwiPCEtLVwiICsgdG9rZW4uY2hhcnMgKyBcIi0tPlwiO1xuICB9LFxuXG4gIEF0dHJpYnV0ZXM6IGZ1bmN0aW9uIChhdHRyaWJ1dGVzKSB7XG4gICAgdmFyIG91dCA9IFtdLCBhdHRyaWJ1dGU7XG5cbiAgICBmb3IgKHZhciBpPTAsIGw9YXR0cmlidXRlcy5sZW5ndGg7IGk8bDsgaSsrKSB7XG4gICAgICBhdHRyaWJ1dGUgPSBhdHRyaWJ1dGVzW2ldO1xuXG4gICAgICBvdXQucHVzaCh0aGlzLkF0dHJpYnV0ZShhdHRyaWJ1dGVbMF0sIGF0dHJpYnV0ZVsxXSkpO1xuICAgIH1cblxuICAgIHJldHVybiBvdXQuam9pbihcIiBcIik7XG4gIH0sXG5cbiAgQXR0cmlidXRlOiBmdW5jdGlvbiAobmFtZSwgdmFsdWUpIHtcbiAgICB2YXIgYXR0clN0cmluZyA9IG5hbWU7XG5cbiAgICBpZiAodmFsdWUpIHtcbiAgICAgIHZhbHVlID0gdGhpcy5lc2NhcGUodmFsdWUpO1xuICAgICAgYXR0clN0cmluZyArPSBcIj1cXFwiXCIgKyB2YWx1ZSArIFwiXFxcIlwiO1xuICAgIH1cblxuICAgIHJldHVybiBhdHRyU3RyaW5nO1xuICB9XG59O1xuXG5leHBvcnQgZGVmYXVsdCBHZW5lcmF0b3I7XG4iXX0= |
@@ -1,13 +0,24 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
exports.default = tokenize; | ||
var Tokenizer = require('./tokenizer'); | ||
var EntityParser = require('./entity-parser'); | ||
var namedCodepoints = require('./char-refs/full'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
var _tokenizer = require('./tokenizer'); | ||
var _tokenizer2 = _interopRequireDefault(_tokenizer); | ||
exports['default'] = tokenize; | ||
var _entityParser = require('./entity-parser'); | ||
var _entityParser2 = _interopRequireDefault(_entityParser); | ||
var _charRefsFull = require('./char-refs/full'); | ||
var _charRefsFull2 = _interopRequireDefault(_charRefsFull); | ||
function tokenize(input) { | ||
var tokenizer = new Tokenizer['default'](new EntityParser['default'](namedCodepoints['default'])); | ||
var tokenizer = new _tokenizer2.default(new _entityParser2.default(_charRefsFull2.default)); | ||
return tokenizer.tokenize(input); | ||
} | ||
} | ||
module.exports = exports.default; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNpbXBsZS1odG1sLXRva2VuaXplci90b2tlbml6ZS5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO2tCQUl3QixRQUFROzs7O3lCQUpWLGFBQWE7Ozs7NEJBQ1YsaUJBQWlCOzs7OzRCQUNkLGtCQUFrQjs7OztBQUUvQixTQUFTLFFBQVEsQ0FBQyxLQUFLLEVBQUU7QUFDdEMsTUFBSSxTQUFTLEdBQUcsd0JBQWMsa0RBQWlDLENBQUMsQ0FBQztBQUNqRSxTQUFPLFNBQVMsQ0FBQyxRQUFRLENBQUMsS0FBSyxDQUFDLENBQUM7Q0FDbEMiLCJmaWxlIjoic2ltcGxlLWh0bWwtdG9rZW5pemVyL3Rva2VuaXplLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFRva2VuaXplciBmcm9tICcuL3Rva2VuaXplcic7XG5pbXBvcnQgRW50aXR5UGFyc2VyIGZyb20gJy4vZW50aXR5LXBhcnNlcic7XG5pbXBvcnQgbmFtZWRDb2RlcG9pbnRzIGZyb20gJy4vY2hhci1yZWZzL2Z1bGwnO1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiB0b2tlbml6ZShpbnB1dCkge1xuICB2YXIgdG9rZW5pemVyID0gbmV3IFRva2VuaXplcihuZXcgRW50aXR5UGFyc2VyKG5hbWVkQ29kZXBvaW50cykpO1xuICByZXR1cm4gdG9rZW5pemVyLnRva2VuaXplKGlucHV0KTtcbn1cbiJdfQ== |
@@ -1,8 +0,13 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
var EventedTokenizer = require('./evented-tokenizer'); | ||
var tokens = require('./tokens'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
var _eventedTokenizer = require('./evented-tokenizer'); | ||
var _eventedTokenizer2 = _interopRequireDefault(_eventedTokenizer); | ||
var _tokens = require('./tokens'); | ||
function Tokenizer(entityParser) { | ||
this.tokenizer = new EventedTokenizer['default'](this, entityParser); | ||
this.tokenizer = new _eventedTokenizer2.default(this, entityParser); | ||
@@ -60,3 +65,3 @@ this.token = null; | ||
beginData: function () { | ||
this.token = new tokens.Chars(); | ||
this.token = new _tokens.Chars(); | ||
this.tokens.push(this.token); | ||
@@ -76,3 +81,3 @@ }, | ||
beginComment: function () { | ||
this.token = new tokens.Comment(); | ||
this.token = new _tokens.Comment(); | ||
this.tokens.push(this.token); | ||
@@ -92,3 +97,3 @@ }, | ||
beginStartTag: function () { | ||
this.token = new tokens.StartTag(); | ||
this.token = new _tokens.StartTag(); | ||
this.tokens.push(this.token); | ||
@@ -98,3 +103,3 @@ }, | ||
beginEndTag: function () { | ||
this.token = new tokens.EndTag(); | ||
this.token = new _tokens.EndTag(); | ||
this.tokens.push(this.token); | ||
@@ -140,2 +145,4 @@ }, | ||
exports['default'] = Tokenizer; | ||
exports.default = Tokenizer; | ||
module.exports = exports.default; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNpbXBsZS1odG1sLXRva2VuaXplci90b2tlbml6ZXIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztnQ0FBNkIscUJBQXFCOzs7O3NCQU0zQyxVQUFVOztBQUVqQixTQUFTLFNBQVMsQ0FBQyxZQUFZLEVBQUU7QUFDL0IsTUFBSSxDQUFDLFNBQVMsR0FBRywrQkFBcUIsSUFBSSxFQUFFLFlBQVksQ0FBQyxDQUFDOztBQUUxRCxNQUFJLENBQUMsS0FBSyxHQUFH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@ -1,3 +0,2 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
exports.StartTag = StartTag; | ||
@@ -28,2 +27,3 @@ exports.EndTag = EndTag; | ||
this.chars = chars || ''; | ||
} | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNpbXBsZS1odG1sLXRva2VuaXplci90b2tlbnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtRQUFnQixRQUFRLEdBQVIsUUFBUTtRQU9SLE1BQU0sR0FBTixNQUFNO1FBS04sS0FBSyxHQUFMLEtBQUs7UUFLTCxPQUFPLEdBQVAsT0FBTzs7QUFqQmhCLFNBQVMsUUFBUSxDQUFDLE9BQU8sRUFBRSxVQUFVLEVBQUUsV0FBVyxFQUFFO0FBQ3pELE1BQUksQ0FBQyxJQUFJLEdBQUcsVUFBVSxDQUFDO0FBQ3ZCLE1BQUksQ0FBQyxPQUFPLEdBQUcsT0FBTyxJQUFJLEVBQUUsQ0FBQztBQUM3QixNQUFJLENBQUMsVUFBVSxHQUFHLFVBQVUsSUFBSSxFQUFFLENBQUM7QUFDbkMsTUFBSSxDQUFDLFdBQVcsR0FBRyxXQUFXLEtBQUssSUFBSSxDQUFDO0NBQ3pDOztBQUVNLFNBQVMsTUFBTSxDQUFDLE9BQU8sRUFBRTtBQUM5QixNQUFJLENBQUMsSUFBSSxHQUFHLFFBQVEsQ0FBQztBQUNyQixNQUFJLENBQUMsT0FBTyxHQUFHLE9BQU8sSUFBSSxFQUFFLENBQUM7Q0FDOUI7O0FBRU0sU0FBUyxLQUFLLENBQUMsS0FBSyxFQUFFO0FBQzNCLE1BQUksQ0FBQyxJQUFJLEdBQUcsT0FBTyxDQUFDO0FBQ3BCLE1BQUksQ0FBQyxLQUFLLEdBQUcsS0FBSyxJQUFJLEVBQUUsQ0FBQztDQUMxQjs7QUFFTSxTQUFTLE9BQU8sQ0FBQyxLQUFLLEVBQUU7QUFDN0IsTUFBSSxDQUFDLElBQUksR0FBRyxTQUFTLENBQUM7QUFDdEIsTUFBSSxDQUFDLEtBQUssR0FBRyxLQUFLLElBQUksRUFBRSxDQUFDO0NBQzFCIiwiZmlsZSI6InNpbXBsZS1odG1sLXRva2VuaXplci90b2tlbnMuanMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZnVuY3Rpb24gU3RhcnRUYWcodGFnTmFtZSwgYXR0cmlidXRlcywgc2VsZkNsb3NpbmcpIHtcbiAgdGhpcy50eXBlID0gJ1N0YXJ0VGFnJztcbiAgdGhpcy50YWdOYW1lID0gdGFnTmFtZSB8fCAnJztcbiAgdGhpcy5hdHRyaWJ1dGVzID0gYXR0cmlidXRlcyB8fCBbXTtcbiAgdGhpcy5zZWxmQ2xvc2luZyA9IHNlbGZDbG9zaW5nID09PSB0cnVlO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gRW5kVGFnKHRhZ05hbWUpIHtcbiAgdGhpcy50eXBlID0gJ0VuZFRhZyc7XG4gIHRoaXMudGFnTmFtZSA9IHRhZ05hbWUgfHwgJyc7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBDaGFycyhjaGFycykge1xuICB0aGlzLnR5cGUgPSAnQ2hhcnMnO1xuICB0aGlzLmNoYXJzID0gY2hhcnMgfHwgXCJcIjtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIENvbW1lbnQoY2hhcnMpIHtcbiAgdGhpcy50eXBlID0gJ0NvbW1lbnQnO1xuICB0aGlzLmNoYXJzID0gY2hhcnMgfHwgJyc7XG59XG4iXX0= |
@@ -1,3 +0,2 @@ | ||
'use strict'; | ||
exports.__esModule = true; | ||
exports.isSpace = isSpace; | ||
@@ -17,2 +16,3 @@ exports.isAlpha = isAlpha; | ||
return input.replace(/\r\n?/g, "\n"); | ||
} | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNpbXBsZS1odG1sLXRva2VuaXplci91dGlscy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO1FBQWdCLE9BQU8sR0FBUCxPQUFPO1FBSVAsT0FBTyxHQUFQLE9BQU87UUFJUCxlQUFlLEdBQWYsZUFBZTs7QUFSeEIsU0FBUyxPQUFPLENBQUMsSUFBSSxFQUFFO0FBQzVCLFNBQU8sQUFBQyxXQUFXLENBQUUsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDO0NBQ2pDOztBQUVNLFNBQVMsT0FBTyxDQUFDLElBQUksRUFBRTtBQUM1QixTQUFPLEFBQUMsVUFBVSxDQUFFLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQztDQUNoQzs7QUFFTSxTQUFTLGVBQWUsQ0FBQyxLQUFLLEVBQUU7QUFDckMsU0FBTyxLQUFLLENBQUMsT0FBTyxDQUFDLFFBQVEsRUFBRSxJQUFJLENBQUMsQ0FBQztDQUN0QyIsImZpbGUiOiJzaW1wbGUtaHRtbC10b2tlbml6ZXIvdXRpbHMuanMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZnVuY3Rpb24gaXNTcGFjZShjaGFyKSB7XG4gIHJldHVybiAoL1tcXHRcXG5cXGYgXS8pLnRlc3QoY2hhcik7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBpc0FscGhhKGNoYXIpIHtcbiAgcmV0dXJuICgvW0EtWmEtel0vKS50ZXN0KGNoYXIpO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gcHJlcHJvY2Vzc0lucHV0KGlucHV0KSB7XG4gIHJldHVybiBpbnB1dC5yZXBsYWNlKC9cXHJcXG4/L2csIFwiXFxuXCIpO1xufVxuIl19 |
@@ -285,4 +285,3 @@ import Morph from "./htmlbars-runtime/morph"; | ||
prototype.setProperty = function(element, name, value, namespace) { | ||
var lowercaseName = name.toLowerCase(); | ||
if (element.namespaceURI === svgNamespace || lowercaseName === 'style') { | ||
if (element.namespaceURI === svgNamespace) { | ||
if (isAttrRemovalValue(value)) { | ||
@@ -289,0 +288,0 @@ element.removeAttribute(name); |
@@ -28,3 +28,5 @@ export function isAttrRemovalValue(value) { | ||
if (type === 'prop' && preferAttr(element.tagName, normalized)) { | ||
if (type === 'prop' && | ||
(normalized.toLowerCase() === 'style' || | ||
preferAttr(element.tagName, normalized))) { | ||
type = 'attr'; | ||
@@ -31,0 +33,0 @@ } |
@@ -202,5 +202,5 @@ import render from "./render"; | ||
return function(_key, blockArguments, self) { | ||
if (typeof _key !== 'string') { | ||
throw new Error("You must provide a string key when calling `yieldItem`; you provided " + _key); | ||
return function(key, blockArguments, self) { | ||
if (typeof key !== 'string') { | ||
throw new Error("You must provide a string key when calling `yieldItem`; you provided " + key); | ||
} | ||
@@ -228,23 +228,4 @@ | ||
// process. | ||
let handledMorphs = renderState.handledMorphs; | ||
let key; | ||
var handledMorphs = renderState.handledMorphs; | ||
if (handledMorphs[_key]) { | ||
// In this branch we are dealing with a duplicate key. The strategy | ||
// is to take the original key and append a counter to it that is | ||
// incremented every time the key is reused. In order to greatly | ||
// reduce the chance of colliding with another valid key we also add | ||
// an extra string "--z8mS2hvDW0A--" to the new key. | ||
let collisions = renderState.collisions; | ||
if (collisions === undefined) { | ||
collisions = renderState.collisions = {}; | ||
} | ||
let count = collisions[_key] | 0; | ||
collisions[_key] = ++count; | ||
key = _key + '--z8mS2hvDW0A--' + count; | ||
} else { | ||
key = _key; | ||
} | ||
if (currentMorph && currentMorph.key === key) { | ||
@@ -251,0 +232,0 @@ yieldTemplate(template, env, parentScope, currentMorph, renderState, visitor)(blockArguments, self); |
@@ -1,9 +0,11 @@ | ||
import Walker from "./htmlbars-syntax/walker"; | ||
import builders from "./htmlbars-syntax/builders"; | ||
import parse from "./htmlbars-syntax/parser"; | ||
import traverse from "./htmlbars-syntax/traversal/traverse"; | ||
import Walker from "./htmlbars-syntax/traversal/walker"; | ||
export { | ||
Walker, | ||
builders, | ||
parse | ||
parse, | ||
traverse, | ||
Walker | ||
}; |
@@ -6,3 +6,3 @@ // Statements | ||
type: "MustacheStatement", | ||
path: path, | ||
path: buildPath(path), | ||
params: params || [], | ||
@@ -18,3 +18,3 @@ hash: hash || buildHash([]), | ||
type: "BlockStatement", | ||
path: path, | ||
path: buildPath(path), | ||
params: params || [], | ||
@@ -31,3 +31,3 @@ hash: hash || buildHash([]), | ||
type: "ElementModifierStatement", | ||
path: path, | ||
path: buildPath(path), | ||
params: params || [], | ||
@@ -107,3 +107,3 @@ hash: hash || buildHash([]), | ||
type: "SubExpression", | ||
path: path, | ||
path: buildPath(path), | ||
params: params || [], | ||
@@ -115,7 +115,11 @@ hash: hash || buildHash([]) | ||
export function buildPath(original) { | ||
return { | ||
type: "PathExpression", | ||
original: original, | ||
parts: original.split('.') | ||
}; | ||
if (typeof original === 'string') { | ||
return { | ||
type: "PathExpression", | ||
original: original, | ||
parts: original.split('.') | ||
}; | ||
} else { | ||
return original; | ||
} | ||
} | ||
@@ -122,0 +126,0 @@ |
@@ -16,3 +16,2 @@ import { visitChildren } from "../htmlbars-util/morph-utils"; | ||
this.handledMorphs = {}; | ||
this.collisions = undefined; | ||
@@ -84,3 +83,2 @@ // The morph to clear once rendering is complete. By | ||
var renderState = options.renderState; | ||
renderState.collisions = undefined; | ||
renderState.shadowOptions = shadowOptions; | ||
@@ -87,0 +85,0 @@ |
@@ -6,3 +6,3 @@ /* | ||
* See https://raw.githubusercontent.com/tildeio/htmlbars/master/LICENSE | ||
* @version 0.13.34.c418c83b | ||
* @version v0.14.0 | ||
*/ | ||
@@ -17,4 +17,6 @@ | ||
} from "./htmlbars-compiler/compiler"; | ||
import Walker from "./htmlbars-syntax/walker"; | ||
export {compile, compileSpec, Walker}; | ||
export { | ||
compile, | ||
compileSpec | ||
}; |
@@ -1,5 +0,3 @@ | ||
define('htmlbars-runtime-tests/hooks-test', ['../htmlbars-runtime', '../htmlbars-util/object-utils', '../htmlbars-compiler/compiler', '../htmlbars-test-helpers', '../dom-helper'], function (htmlbars_runtime, object_utils, compiler, htmlbars_test_helpers, DOMHelper) { | ||
define("htmlbars-runtime-tests/hooks-test", ["exports", "../htmlbars-runtime", "../htmlbars-util/object-utils", "../htmlbars-compiler/compiler", "../htmlbars-test-helpers", "../dom-helper"], function (exports, _htmlbarsRuntime, _htmlbarsUtilObjectUtils, _htmlbarsCompilerCompiler, _htmlbarsTestHelpers, _domHelper) { | ||
'use strict'; | ||
var hooks, helpers, partials, env; | ||
@@ -12,4 +10,4 @@ | ||
function commonSetup() { | ||
hooks = object_utils.merge({}, htmlbars_runtime.hooks); | ||
hooks.keywords = object_utils.merge({}, htmlbars_runtime.hooks.keywords); | ||
hooks = _htmlbarsUtilObjectUtils.merge({}, _htmlbarsRuntime.hooks); | ||
hooks.keywords = _htmlbarsUtilObjectUtils.merge({}, _htmlbarsRuntime.hooks.keywords); | ||
helpers = {}; | ||
@@ -19,3 +17,3 @@ partials = {}; | ||
env = { | ||
dom: new DOMHelper['default'](), | ||
dom: new _domHelper.default(), | ||
hooks: hooks, | ||
@@ -39,6 +37,6 @@ helpers: helpers, | ||
var object = { val: "hello" }; | ||
var template = compiler.compile("<div>{{get val}}</div>"); | ||
var template = _htmlbarsCompilerCompiler.compile("<div>{{get val}}</div>"); | ||
var result = template.render(object, env); | ||
htmlbars_test_helpers.equalTokens(result.fragment, "<div>hello</div>"); | ||
_htmlbarsTestHelpers.equalTokens(result.fragment, "<div>hello</div>"); | ||
@@ -49,3 +47,3 @@ object.val = ""; | ||
htmlbars_test_helpers.equalTokens(result.fragment, "<div></div>"); | ||
_htmlbarsTestHelpers.equalTokens(result.fragment, "<div></div>"); | ||
}); | ||
@@ -60,6 +58,6 @@ | ||
var object = { val: "hello" }; | ||
var template = compiler.compile("<div>{{get val}}</div>"); | ||
var template = _htmlbarsCompilerCompiler.compile("<div>{{get val}}</div>"); | ||
var result = template.render(object, env); | ||
htmlbars_test_helpers.equalTokens(result.fragment, "<div>hello</div>"); | ||
_htmlbarsTestHelpers.equalTokens(result.fragment, "<div>hello</div>"); | ||
@@ -70,10 +68,11 @@ object.val = ""; | ||
htmlbars_test_helpers.equalTokens(result.fragment, "<div></div>"); | ||
_htmlbarsTestHelpers.equalTokens(result.fragment, "<div></div>"); | ||
}); | ||
}); | ||
define('htmlbars-runtime-tests/hooks-test.jshint', function () { | ||
'use strict'; | ||
// import { manualElement } from "../htmlbars-runtime/render"; | ||
// import { hostBlock } from "../htmlbars-runtime/hooks"; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXJ1bnRpbWUtdGVzdHMvaG9va3MtdGVzdC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQVFBLE1BQUksS0FBSyxFQUFFLE9BQU8sRUFBRSxRQUFRLEVBQUUsR0FBRyxDQUFDOztBQUVsQyxXQUFTLGNBQWMsQ0FBQyxJQUFJLEVBQUUsUUFBUSxFQUFFO0FBQ3RDLFdBQU8sQ0FBQyxJQUFJLENBQUMsR0FBRyxRQUFRLENBQUM7R0FDMUI7O0FBRUQsV0FBUyxXQUFXLEdBQUc7QUFDckIsU0FBSyxHQUFHLHlCQWRELEtBQUssQ0FjRSxFQUFFLG1CQWZULEtBQUssQ0FlbUIsQ0FBQztBQUNoQyxTQUFLLENBQUMsUUFBUSxHQUFHLHlCQWZWLEtBQUssQ0FlVyxFQUFFLEVBQUUsaUJBaEJwQixLQUFLLENBZ0I0QixRQUFRLENBQUMsQ0FBQztBQUNsRCxXQUFPLEdBQUcsRUFBRSxDQUFDO0FBQ2IsWUFBUSxHQUFHLEVBQUUsQ0FBQzs7QUFFZCxPQUFHLEdBQUc7QUFDSixTQUFHLEVBQUUsd0JBQWU7QUFDcEIsV0FBSyxFQUFFLEtBQUs7QUFDWixhQUFPLEVBQUUsT0FBTztBQUNoQixjQUFRLEVBQUUsUUFBUTtBQUNsQixzQkFBZ0IsRUFBRSxJQUFJO0tBQ3ZCLENBQUM7R0FDSDs7QUFFRCxPQUFLLENBQUMsTUFBTSxDQUFDLHlCQUF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ICByZXN1bHQucmVyZW5kZXIoKTtcblxuICBlcXVhbFRva2VucyhyZXN1bHQuZnJhZ21lbnQsICc8ZGl2PjwvZGl2PicpO1xuXG59KTtcblxudGVzdChcImlubGluZSBob29rIGNvcnJlY3RseSBoYW5kbGVzIGZhbHNlLWxpa2UgdmFsdWVzXCIsIGZ1bmN0aW9uKCkge1xuXG4gIHJlZ2lzdGVySGVscGVyKCdnZXQnLCBmdW5jdGlvbihwYXJhbXMpIHtcbiAgICByZXR1cm4gcGFyYW1zWzBdO1xuICB9KTtcblxuICB2YXIgb2JqZWN0ID0geyB2YWw6ICdoZWxsbycgfTtcbiAgdmFyIHRlbXBsYXRlID0gY29tcGlsZSgnPGRpdj57e2dldCB2YWx9fTwvZGl2PicpO1xuICB2YXIgcmVzdWx0ID0gdGVtcGxhdGUucmVuZGVyKG9iamVjdCwgZW52KTtcblxuICBlcXVhbFRva2VucyhyZXN1bHQuZnJhZ21lbnQsICc8ZGl2PmhlbGxvPC9kaXY+Jyk7XG5cbiAgb2JqZWN0LnZhbCA9ICcnO1xuXG4gIHJlc3VsdC5yZXJlbmRlcigpO1xuXG4gIGVxdWFsVG9rZW5zKHJlc3VsdC5mcmFnbWVudCwgJzxkaXY+PC9kaXY+Jyk7XG5cbn0pO1xuIl19 | ||
define('htmlbars-runtime-tests/hooks-test.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-runtime-tests'); | ||
@@ -83,8 +82,6 @@ test('htmlbars-runtime-tests/hooks-test.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-runtime-tests/hooks', ['../htmlbars-runtime', '../htmlbars-util/object-utils', '../htmlbars-compiler/compiler', '../htmlbars-test-helpers', '../dom-helper'], function (htmlbars_runtime, object_utils, compiler, htmlbars_test_helpers, DOMHelper) { | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXJ1bnRpbWUtdGVzdHMvaG9va3MtdGVzdC5qc2hpbnQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU0sQ0FBQyxpQ0FBaUMsQ0FBQyxDQUFDO0FBQzFDLE1BQUksQ0FBQyx5REFBeUQsRUFBRSxZQUFXO0FBQ3pFLE1BQUUsQ0FBQyxJQUFJLEVBQUUsMERBQTBELENBQUMsQ0FBQztHQUN0RSxDQUFDLENBQUMiLCJmaWxlIjoiaHRtbGJhcnMtcnVudGltZS10ZXN0cy9ob29rcy10ZXN0LmpzaGludC5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZSgnSlNIaW50IC0gaHRtbGJhcnMtcnVudGltZS10ZXN0cycpO1xudGVzdCgnaHRtbGJhcnMtcnVudGltZS10ZXN0cy9ob29rcy10ZXN0LmpzIHNob3VsZCBwYXNzIGpzaGludCcsIGZ1bmN0aW9uKCkgeyBcbiAgb2sodHJ1ZSwgJ2h0bWxiYXJzLXJ1bnRpbWUtdGVzdHMvaG9va3MtdGVzdC5qcyBzaG91bGQgcGFzcyBqc2hpbnQuJyk7IFxufSk7XG4iXX0= | ||
define("htmlbars-runtime-tests/hooks", ["exports", "../htmlbars-runtime", "../htmlbars-util/object-utils", "../htmlbars-compiler/compiler", "../htmlbars-test-helpers", "../dom-helper"], function (exports, _htmlbarsRuntime, _htmlbarsUtilObjectUtils, _htmlbarsCompilerCompiler, _htmlbarsTestHelpers, _domHelper) { | ||
'use strict'; | ||
var hooks, helpers, partials, env; | ||
@@ -97,4 +94,4 @@ | ||
function commonSetup() { | ||
hooks = object_utils.merge({}, htmlbars_runtime.hooks); | ||
hooks.keywords = object_utils.merge({}, htmlbars_runtime.hooks.keywords); | ||
hooks = _htmlbarsUtilObjectUtils.merge({}, _htmlbarsRuntime.hooks); | ||
hooks.keywords = _htmlbarsUtilObjectUtils.merge({}, _htmlbarsRuntime.hooks.keywords); | ||
helpers = {}; | ||
@@ -104,3 +101,3 @@ partials = {}; | ||
env = { | ||
dom: new DOMHelper['default'](), | ||
dom: new _domHelper.default(), | ||
hooks: hooks, | ||
@@ -124,6 +121,6 @@ helpers: helpers, | ||
var object = { val: "hello" }; | ||
var template = compiler.compile("<div>{{get val}}</div>"); | ||
var template = _htmlbarsCompilerCompiler.compile("<div>{{get val}}</div>"); | ||
var result = template.render(object, env); | ||
htmlbars_test_helpers.equalTokens(result.fragment, "<div>hello</div>"); | ||
_htmlbarsTestHelpers.equalTokens(result.fragment, "<div>hello</div>"); | ||
@@ -134,3 +131,3 @@ object.val = ""; | ||
htmlbars_test_helpers.equalTokens(result.fragment, "<div></div>"); | ||
_htmlbarsTestHelpers.equalTokens(result.fragment, "<div></div>"); | ||
}); | ||
@@ -144,6 +141,6 @@ | ||
var object = { val: true }; | ||
var template = compiler.compile("<div data-foo={{if val \"stuff\" \"\"}}></div>"); | ||
var template = _htmlbarsCompilerCompiler.compile("<div data-foo={{if val \"stuff\" \"\"}}></div>"); | ||
var result = template.render(object, env); | ||
htmlbars_test_helpers.equalTokens(result.fragment, "<div data-foo=\"stuff\"></div>"); | ||
_htmlbarsTestHelpers.equalTokens(result.fragment, "<div data-foo=\"stuff\"></div>"); | ||
@@ -154,10 +151,11 @@ object.val = false; | ||
htmlbars_test_helpers.equalTokens(result.fragment, "<div data-foo=\"\"></div>"); | ||
_htmlbarsTestHelpers.equalTokens(result.fragment, "<div data-foo=\"\"></div>"); | ||
}); | ||
}); | ||
define('htmlbars-runtime-tests/hooks.jshint', function () { | ||
'use strict'; | ||
// import { manualElement } from "../htmlbars-runtime/render"; | ||
// import { hostBlock } from "../htmlbars-runtime/hooks"; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXJ1bnRpbWUtdGVzdHMvaG9va3MuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFRQSxNQUFJLEtBQUssRUFBRSxPQUFPLEVBQUUsUUFBUSxFQUFFLEdBQUcsQ0FBQzs7QUFFbEMs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X07XG4gIHZhciB0ZW1wbGF0ZSA9IGNvbXBpbGUoJzxkaXYgZGF0YS1mb289e3tpZiB2YWwgXCJzdHVmZlwiIFwiXCJ9fT48L2Rpdj4nKTtcbiAgdmFyIHJlc3VsdCA9IHRlbXBsYXRlLnJlbmRlcihvYmplY3QsIGVudik7XG5cbiAgZXF1YWxUb2tlbnMocmVzdWx0LmZyYWdtZW50LCAnPGRpdiBkYXRhLWZvbz1cInN0dWZmXCI+PC9kaXY+Jyk7XG5cbiAgb2JqZWN0LnZhbCA9IGZhbHNlO1xuXG4gIHJlc3VsdC5yZXJlbmRlcigpO1xuXG4gIGVxdWFsVG9rZW5zKHJlc3VsdC5mcmFnbWVudCwgJzxkaXYgZGF0YS1mb289XCJcIj48L2Rpdj4nKTtcblxufSk7XG4iXX0= | ||
define('htmlbars-runtime-tests/hooks.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-runtime-tests'); | ||
@@ -167,8 +165,5 @@ test('htmlbars-runtime-tests/hooks.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-runtime-tests/htmlbars-runtime.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXJ1bnRpbWUtdGVzdHMvaG9va3MuanNoaW50LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxRQUFNLENBQUMsaUNBQWlDLENBQUMsQ0FBQztBQUMxQyxNQUFJLENBQUMsb0RBQW9ELEVBQUUsWUFBVztBQUNwRSxNQUFFLENBQUMsSUFBSSxFQUFFLHFEQUFxRCxDQUFDLENBQUM7R0FDakUsQ0FBQyxDQUFDIiwiZmlsZSI6Imh0bWxiYXJzLXJ1bnRpbWUtdGVzdHMvaG9va3MuanNoaW50LmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlKCdKU0hpbnQgLSBodG1sYmFycy1ydW50aW1lLXRlc3RzJyk7XG50ZXN0KCdodG1sYmFycy1ydW50aW1lLXRlc3RzL2hvb2tzLmpzIHNob3VsZCBwYXNzIGpzaGludCcsIGZ1bmN0aW9uKCkgeyBcbiAgb2sodHJ1ZSwgJ2h0bWxiYXJzLXJ1bnRpbWUtdGVzdHMvaG9va3MuanMgc2hvdWxkIHBhc3MganNoaW50LicpOyBcbn0pO1xuIl19 | ||
define('htmlbars-runtime-tests/htmlbars-runtime.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-runtime-tests'); | ||
@@ -178,8 +173,5 @@ test('htmlbars-runtime-tests/htmlbars-runtime.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-runtime-tests/htmlbars-runtime/expression-visitor.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXJ1bnRpbWUtdGVzdHMvaHRtbGJhcnMtcnVudGltZS5qc2hpbnQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU0sQ0FBQyxpQ0FBaUMsQ0FBQyxDQUFDO0FBQzFDLE1BQUksQ0FBQywrREFBK0QsRUFBRSxZQUFXO0FBQy9FLE1BQUUsQ0FBQyxJQUFJLEVBQUUsZ0VBQWdFLENBQUMsQ0FBQztHQUM1RSxDQUFDLENBQUMiLCJmaWxlIjoiaHRtbGJhcnMtcnVudGltZS10ZXN0cy9odG1sYmFycy1ydW50aW1lLmpzaGludC5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZSgnSlNIaW50IC0gaHRtbGJhcnMtcnVudGltZS10ZXN0cycpO1xudGVzdCgnaHRtbGJhcnMtcnVudGltZS10ZXN0cy9odG1sYmFycy1ydW50aW1lLmpzIHNob3VsZCBwYXNzIGpzaGludCcsIGZ1bmN0aW9uKCkgeyBcbiAgb2sodHJ1ZSwgJ2h0bWxiYXJzLXJ1bnRpbWUtdGVzdHMvaHRtbGJhcnMtcnVudGltZS5qcyBzaG91bGQgcGFzcyBqc2hpbnQuJyk7IFxufSk7XG4iXX0= | ||
define('htmlbars-runtime-tests/htmlbars-runtime/expression-visitor.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-runtime-tests/htmlbars-runtime'); | ||
@@ -189,8 +181,5 @@ test('htmlbars-runtime-tests/htmlbars-runtime/expression-visitor.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-runtime-tests/htmlbars-runtime/hooks.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXJ1bnRpbWUtdGVzdHMvaHRtbGJhcnMtcnVudGltZS9leHByZXNzaW9uLXZpc2l0b3IuanNoaW50LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxRQUFNLENBQUMsa0RBQWtELENBQUMsQ0FBQztBQUMzRCxNQUFJLENBQUMsa0ZBQWtGLEVBQUUsWUFBVztBQUNsRyxNQUFFLENBQUMsSUFBSSxFQUFFLG1GQUFtRixDQUFDLENBQUM7R0FDL0YsQ0FBQyxDQUFDIiwiZmlsZSI6Imh0bWxiYXJzLXJ1bnRpbWUtdGVzdHMvaHRtbGJhcnMtcnVudGltZS9leHByZXNzaW9uLXZpc2l0b3IuanNoaW50LmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlKCdKU0hpbnQgLSBodG1sYmFycy1ydW50aW1lLXRlc3RzL2h0bWxiYXJzLXJ1bnRpbWUnKTtcbnRlc3QoJ2h0bWxiYXJzLXJ1bnRpbWUtdGVzdHMvaHRtbGJhcnMtcnVudGltZS9leHByZXNzaW9uLXZpc2l0b3IuanMgc2hvdWxkIHBhc3MganNoaW50JywgZnVuY3Rpb24oKSB7IFxuICBvayh0cnVlLCAnaHRtbGJhcnMtcnVudGltZS10ZXN0cy9odG1sYmFycy1ydW50aW1lL2V4cHJlc3Npb24tdmlzaXRvci5qcyBzaG91bGQgcGFzcyBqc2hpbnQuJyk7IFxufSk7XG4iXX0= | ||
define('htmlbars-runtime-tests/htmlbars-runtime/hooks.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-runtime-tests/htmlbars-runtime'); | ||
@@ -200,8 +189,5 @@ test('htmlbars-runtime-tests/htmlbars-runtime/hooks.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-runtime-tests/htmlbars-runtime/morph.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXJ1bnRpbWUtdGVzdHMvaHRtbGJhcnMtcnVudGltZS9ob29rcy5qc2hpbnQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU0sQ0FBQyxrREFBa0QsQ0FBQyxDQUFDO0FBQzNELE1BQUksQ0FBQyxxRUFBcUUsRUFBRSxZQUFXO0FBQ3JGLE1BQUUsQ0FBQyxJQUFJLEVBQUUsc0VBQXNFLENBQUMsQ0FBQztHQUNsRixDQUFDLENBQUMiLCJmaWxlIjoiaHRtbGJhcnMtcnVudGltZS10ZXN0cy9odG1sYmFycy1ydW50aW1lL2hvb2tzLmpzaGludC5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZSgnSlNIaW50IC0gaHRtbGJhcnMtcnVudGltZS10ZXN0cy9odG1sYmFycy1ydW50aW1lJyk7XG50ZXN0KCdodG1sYmFycy1ydW50aW1lLXRlc3RzL2h0bWxiYXJzLXJ1bnRpbWUvaG9va3MuanMgc2hvdWxkIHBhc3MganNoaW50JywgZnVuY3Rpb24oKSB7IFxuICBvayh0cnVlLCAnaHRtbGJhcnMtcnVudGltZS10ZXN0cy9odG1sYmFycy1ydW50aW1lL2hvb2tzLmpzIHNob3VsZCBwYXNzIGpzaGludC4nKTsgXG59KTtcbiJdfQ== | ||
define('htmlbars-runtime-tests/htmlbars-runtime/morph.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-runtime-tests/htmlbars-runtime'); | ||
@@ -211,8 +197,5 @@ test('htmlbars-runtime-tests/htmlbars-runtime/morph.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-runtime-tests/htmlbars-runtime/render.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXJ1bnRpbWUtdGVzdHMvaHRtbGJhcnMtcnVudGltZS9tb3JwaC5qc2hpbnQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU0sQ0FBQyxrREFBa0QsQ0FBQyxDQUFDO0FBQzNELE1BQUksQ0FBQyxxRUFBcUUsRUFBRSxZQUFXO0FBQ3JGLE1BQUUsQ0FBQyxJQUFJLEVBQUUsc0VBQXNFLENBQUMsQ0FBQztHQUNsRixDQUFDLENBQUMiLCJmaWxlIjoiaHRtbGJhcnMtcnVudGltZS10ZXN0cy9odG1sYmFycy1ydW50aW1lL21vcnBoLmpzaGludC5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZSgnSlNIaW50IC0gaHRtbGJhcnMtcnVudGltZS10ZXN0cy9odG1sYmFycy1ydW50aW1lJyk7XG50ZXN0KCdodG1sYmFycy1ydW50aW1lLXRlc3RzL2h0bWxiYXJzLXJ1bnRpbWUvbW9ycGguanMgc2hvdWxkIHBhc3MganNoaW50JywgZnVuY3Rpb24oKSB7IFxuICBvayh0cnVlLCAnaHRtbGJhcnMtcnVudGltZS10ZXN0cy9odG1sYmFycy1ydW50aW1lL21vcnBoLmpzIHNob3VsZCBwYXNzIGpzaGludC4nKTsgXG59KTtcbiJdfQ== | ||
define('htmlbars-runtime-tests/htmlbars-runtime/render.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-runtime-tests/htmlbars-runtime'); | ||
@@ -222,9 +205,6 @@ test('htmlbars-runtime-tests/htmlbars-runtime/render.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-runtime-tests/main-test', ['../htmlbars-runtime', '../htmlbars-runtime/render', '../htmlbars-compiler/compiler', '../htmlbars-runtime/hooks', '../htmlbars-test-helpers', '../htmlbars-util/template-utils', '../dom-helper'], function (htmlbars_runtime, render, compiler, hooks, htmlbars_test_helpers, template_utils, DOMHelper) { | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXJ1bnRpbWUtdGVzdHMvaHRtbGJhcnMtcnVudGltZS9yZW5kZXIuanNoaW50LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxRQUFNLENBQUMsa0RBQWtELENBQUMsQ0FBQztBQUMzRCxNQUFJLENBQUMsc0VBQXNFLEVBQUUsWUFBVztBQUN0RixNQUFFLENBQUMsSUFBSSxFQUFFLHVFQUF1RSxDQUFDLENBQUM7R0FDbkYsQ0FBQyxDQUFDIiwiZmlsZSI6Imh0bWxiYXJzLXJ1bnRpbWUtdGVzdHMvaHRtbGJhcnMtcnVudGltZS9yZW5kZXIuanNoaW50LmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlKCdKU0hpbnQgLSBodG1sYmFycy1ydW50aW1lLXRlc3RzL2h0bWxiYXJzLXJ1bnRpbWUnKTtcbnRlc3QoJ2h0bWxiYXJzLXJ1bnRpbWUtdGVzdHMvaHRtbGJhcnMtcnVudGltZS9yZW5kZXIuanMgc2hvdWxkIHBhc3MganNoaW50JywgZnVuY3Rpb24oKSB7IFxuICBvayh0cnVlLCAnaHRtbGJhcnMtcnVudGltZS10ZXN0cy9odG1sYmFycy1ydW50aW1lL3JlbmRlci5qcyBzaG91bGQgcGFzcyBqc2hpbnQuJyk7IFxufSk7XG4iXX0= | ||
define("htmlbars-runtime-tests/main-test", ["exports", "../htmlbars-runtime", "../htmlbars-runtime/render", "../htmlbars-compiler/compiler", "../htmlbars-runtime/hooks", "../htmlbars-test-helpers", "../htmlbars-util/template-utils", "../dom-helper"], function (exports, _htmlbarsRuntime, _htmlbarsRuntimeRender, _htmlbarsCompilerCompiler, _htmlbarsRuntimeHooks, _htmlbarsTestHelpers, _htmlbarsUtilTemplateUtils, _domHelper) { | ||
'use strict'; | ||
/*globals SVGElement, SVGLinearGradientElement */ | ||
var env = undefined; | ||
@@ -235,4 +215,4 @@ | ||
env = { | ||
dom: new DOMHelper['default'](), | ||
hooks: htmlbars_runtime.hooks, | ||
dom: new _domHelper.default(), | ||
hooks: _htmlbarsRuntime.hooks, | ||
helpers: {}, | ||
@@ -259,11 +239,11 @@ partials: {}, | ||
for (var i = 0; i < hookNames.length; i++) { | ||
var hook = htmlbars_runtime.hooks[hookNames[i]]; | ||
var hook = _htmlbarsRuntime.hooks[hookNames[i]]; | ||
ok(hook !== undefined, "hook " + hookNames[i] + " is present"); | ||
} | ||
equal(keys(htmlbars_runtime.hooks).length, hookNames.length, "Hooks length match"); | ||
equal(keys(_htmlbarsRuntime.hooks).length, hookNames.length, "Hooks length match"); | ||
}); | ||
test("manualElement function honors namespaces", function () { | ||
htmlbars_runtime.hooks.keywords["manual-element"] = { | ||
_htmlbarsRuntime.hooks.keywords["manual-element"] = { | ||
render: function (morph, env, scope, params, hash, template, inverse, visitor) { | ||
@@ -274,9 +254,9 @@ var attributes = { | ||
var layout = render.manualElement("svg", attributes); | ||
var layout = _htmlbarsRuntimeRender.manualElement("svg", attributes); | ||
hooks.hostBlock(morph, env, scope, template, inverse, null, visitor, function (options) { | ||
_htmlbarsRuntimeHooks.hostBlock(morph, env, scope, template, inverse, null, visitor, function (options) { | ||
options.templates.template.yieldIn({ raw: layout }, hash); | ||
}); | ||
render.manualElement(env, scope, "span", attributes, morph); | ||
_htmlbarsRuntimeRender.manualElement(env, scope, "span", attributes, morph); | ||
}, | ||
@@ -289,7 +269,7 @@ | ||
var template = compiler.compile("{{#manual-element}}<linearGradient><stop offset=\"{{startOffset}}\"></stop><stop offset=\"{{stopOffset}}\"></stop></linearGradient>{{/manual-element}}"); | ||
var template = _htmlbarsCompilerCompiler.compile("{{#manual-element}}<linearGradient><stop offset=\"{{startOffset}}\"></stop><stop offset=\"{{stopOffset}}\"></stop></linearGradient>{{/manual-element}}"); | ||
var result = template.render({ startOffset: 0.1, stopOffset: 0.6 }, env); | ||
ok(result.fragment.childNodes[1] instanceof SVGElement); | ||
ok(result.fragment.childNodes[1].childNodes[0] instanceof SVGLinearGradientElement); | ||
htmlbars_test_helpers.equalTokens(result.fragment, "<svg version=\"1.1\"><linearGradient><stop offset=\"0.1\"></stop><stop offset=\"0.6\"></stop></linearGradient></svg>"); | ||
_htmlbarsTestHelpers.equalTokens(result.fragment, "<svg version=\"1.1\"><linearGradient><stop offset=\"0.1\"></stop><stop offset=\"0.6\"></stop></linearGradient></svg>"); | ||
}); | ||
@@ -301,8 +281,8 @@ | ||
}; | ||
var layout = render.manualElement("input", attributes); | ||
var fragment = layout.buildFragment(new DOMHelper['default']()); | ||
var layout = _htmlbarsRuntimeRender.manualElement("input", attributes); | ||
var fragment = layout.buildFragment(new _domHelper.default()); | ||
equal(fragment.childNodes.length, 1, "includes a single element"); | ||
equal(fragment.childNodes[0].childNodes.length, 0, "no child nodes were added to `<input>` because it is a void tag"); | ||
htmlbars_test_helpers.equalTokens(fragment, "<input class=\"foo-bar\">"); | ||
_htmlbarsTestHelpers.equalTokens(fragment, "<input class=\"foo-bar\">"); | ||
}); | ||
@@ -317,6 +297,6 @@ | ||
var element = document.createElement("div"); | ||
var raw = render.attachAttributes(attributes); | ||
var raw = _htmlbarsRuntimeRender.attachAttributes(attributes); | ||
raw.element = element; | ||
var template = hooks.wrap(raw); | ||
var template = _htmlbarsRuntimeHooks.wrap(raw); | ||
@@ -343,3 +323,3 @@ var self = { other: "first" }; | ||
template.element = element; | ||
block = morph.state.block = template_utils.blockFor(render['default'], template, { scope: scope }); | ||
block = morph.state.block = _htmlbarsUtilTemplateUtils.blockFor(_htmlbarsRuntimeRender.default, template, { scope: scope }); | ||
} | ||
@@ -360,3 +340,3 @@ | ||
var template = compiler.compile("<div>hello</div>"); | ||
var template = _htmlbarsCompilerCompiler.compile("<div>hello</div>"); | ||
@@ -367,3 +347,3 @@ var self = { other: "first" }; | ||
htmlbars_test_helpers.equalTokens(result.fragment, "<div class='foo-bar' other='first'>hello</div>"); | ||
_htmlbarsTestHelpers.equalTokens(result.fragment, "<div class='foo-bar' other='first'>hello</div>"); | ||
@@ -373,15 +353,13 @@ self.other = "second"; | ||
htmlbars_test_helpers.equalTokens(result.fragment, "<div class='foo-bar' other='second'>hello</div>"); | ||
_htmlbarsTestHelpers.equalTokens(result.fragment, "<div class='foo-bar' other='second'>hello</div>"); | ||
var expected = [result.root, attributesMorph, attributesMorph.childNodes[0]]; | ||
template_utils.clearMorph(result.root, env, true); | ||
_htmlbarsUtilTemplateUtils.clearMorph(result.root, env, true); | ||
deepEqual(cleanedUpNodes, expected); | ||
}); | ||
}); | ||
define('htmlbars-runtime-tests/main-test.jshint', function () { | ||
'use strict'; | ||
/*globals SVGElement, SVGLinearGradientElement */ | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXJ1bnRpbWUtdGVzdHMvbWFpbi10ZXN0LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBVUEsTUFBSSxHQUFHLFlBQUEsQ0FBQzs7QUFFUixPQUFLLENBQUMsTUFBTSxDQUFDLGtCQUFrQixFQUFFO0FBQy9CLFNBQUssRUFBQSxZQUFHO0FBQ04sU0FBRyxHQUFHO0FBQ0osV0FBRyxFQUFFLHdCQUFlO0FBQ3BCLGFBQUssbUJBZkYsS0FBSyxBQWVJO0FBQ1osZUFBTyxFQUFFLEVBQUU7QUFDWCxnQkFBUSxFQUFFLEVBQUU7QUFDWix3QkFBZ0IsRUFBRSxJQUFJO09BQ3ZCLENBQUM7S0FDSDtHQUNGLENBQUMsQ0FBQz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hcnMtcnVudGltZVwiLCB7XG4gIHNldHVwKCkge1xuICAgIGVudiA9IHtcbiAgICAgIGRvbTogbmV3IERPTUhlbHBlcigpLFxuICAgICAgaG9va3M6IGhvb2tzLFxuICAgICAgaGVscGVyczoge30sXG4gICAgICBwYXJ0aWFsczoge30sXG4gICAgICB1c2VGcmFnbWVudENhY2hlOiB0cnVlXG4gICAgfTtcbiAgfVxufSk7XG5cbmZ1bmN0aW9uIGtleXMob2JqKSB7XG4gIHZhciBvd25LZXlzID0gW107XG4gIGZvciAodmFyIGtleSBpbiBvYmopIHtcbiAgICBpZiAob2JqLmhhc093blByb3BlcnR5KGtleSkpIHtcbiAgICAgIG93bktleXMucHVzaChrZXkpO1xuICAgIH1cbiAgfVxuICByZXR1cm4gb3duS2V5cztcbn1cblxudGVzdChcImhvb2tzIGFyZSBwcmVzZW50XCIsIGZ1bmN0aW9uICgpIHtcbiAgdmFyIGhvb2tOYW1lcyA9IFtcbiAgICBcImtleXdvcmRzXCIsXG4gICAgXCJsaW5rUmVuZGVyTm9kZVwiLFxuICAgIFwiY3JlYXRlU2NvcGVcIixcbiAgICBcImNsYXNzaWZ5XCIsXG4gICAgXCJjcmVhdGVGcmVzaFNjb3BlXCIsXG4gICAgXCJjcmVhdGVDaGlsZFNjb3BlXCIsXG4gICAgXCJiaW5kU2hhZG93U2NvcGVcIixcbiAgICBcImJpbmRTY29wZVwiLFxuICAgIFwiYmluZFNlbGZcIixcbiAgICBcImJpbmRMb2NhbFwiLFxuICAgIFwiYmluZEJsb2NrXCIsXG4gICAgXCJ1cGRhdGVTY29wZVwiLFxuICAgIFwidXBkYXRlU2VsZlwiLFxuICAgIFwidXBkYXRlTG9jYWxcIixcbiAgICBcImxvb2t1cEhlbHBlclwiLFxuICAgIFwiaGFzSGVscGVyXCIsXG4gICAgXCJpbnZva2VIZWxwZXJcIixcbiAgICBcInJhbmdlXCIsXG4gICAgXCJibG9ja1wiLFxuICAgIFwiaW5saW5lXCIsXG4gICAgXCJr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IG90aGVyPSdmaXJzdCc+aGVsbG88L2Rpdj5cIik7XG5cbiAgc2VsZi5vdGhlciA9IFwic2Vjb25kXCI7XG4gIHJlc3VsdC5yZXJlbmRlcigpO1xuXG4gIGVxdWFsVG9rZW5zKHJlc3VsdC5mcmFnbWVudCwgXCI8ZGl2IGNsYXNzPSdmb28tYmFyJyBvdGhlcj0nc2Vjb25kJz5oZWxsbzwvZGl2PlwiKTtcblxuICBsZXQgZXhwZWN0ZWQgPSBbcmVzdWx0LnJvb3QsIGF0dHJpYnV0ZXNNb3JwaCwgYXR0cmlidXRlc01vcnBoLmNoaWxkTm9kZXNbMF1dO1xuICBjbGVhck1vcnBoKHJlc3VsdC5yb290LCBlbnYsIHRydWUpO1xuXG4gIGRlZXBFcXVhbChjbGVhbmVkVXBOb2RlcywgZXhwZWN0ZWQpO1xufSk7XG4iXX0= | ||
define('htmlbars-runtime-tests/main-test.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-runtime-tests'); | ||
@@ -391,3 +369,3 @@ test('htmlbars-runtime-tests/main-test.js should pass jshint', function () { | ||
}); | ||
}); | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXJ1bnRpbWUtdGVzdHMvbWFpbi10ZXN0LmpzaGludC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsUUFBTSxDQUFDLGlDQUFpQyxDQUFDLENBQUM7QUFDMUMsTUFBSSxDQUFDLHdEQUF3RCxFQUFFLFlBQVc7QUFDeEUsTUFBRSxDQUFDLElBQUksRUFBRSx5REFBeUQsQ0FBQyxDQUFDO0dBQ3JFLENBQUMsQ0FBQyIsImZpbGUiOiJodG1sYmFycy1ydW50aW1lLXRlc3RzL21haW4tdGVzdC5qc2hpbnQuanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUoJ0pTSGludCAtIGh0bWxiYXJzLXJ1bnRpbWUtdGVzdHMnKTtcbnRlc3QoJ2h0bWxiYXJzLXJ1bnRpbWUtdGVzdHMvbWFpbi10ZXN0LmpzIHNob3VsZCBwYXNzIGpzaGludCcsIGZ1bmN0aW9uKCkgeyBcbiAgb2sodHJ1ZSwgJ2h0bWxiYXJzLXJ1bnRpbWUtdGVzdHMvbWFpbi10ZXN0LmpzIHNob3VsZCBwYXNzIGpzaGludC4nKTsgXG59KTtcbiJdfQ== |
@@ -1,5 +0,2 @@ | ||
define('htmlbars-test-helpers-tests/htmlbars-test-helpers.jshint', function () { | ||
'use strict'; | ||
define('htmlbars-test-helpers-tests/htmlbars-test-helpers.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-test-helpers-tests'); | ||
@@ -9,13 +6,7 @@ test('htmlbars-test-helpers-tests/htmlbars-test-helpers.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-test-helpers-tests/main-test', function () { | ||
'use strict'; | ||
}); | ||
define('htmlbars-test-helpers-tests/main-test.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXRlc3QtaGVscGVycy10ZXN0cy9odG1sYmFycy10ZXN0LWhlbHBlcnMuanNoaW50LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxRQUFNLENBQUMsc0NBQXNDLENBQUMsQ0FBQztBQUMvQyxNQUFJLENBQUMseUVBQXlFLEVBQUUsWUFBVztBQUN6RixNQUFFLENBQUMsSUFBSSxFQUFFLDBFQUEwRSxDQUFDLENBQUM7R0FDdEYsQ0FBQyxDQUFDIiwiZmlsZSI6Imh0bWxiYXJzLXRlc3QtaGVscGVycy10ZXN0cy9odG1sYmFycy10ZXN0LWhlbHBlcnMuanNoaW50LmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlKCdKU0hpbnQgLSBodG1sYmFycy10ZXN0LWhlbHBlcnMtdGVzdHMnKTtcbnRlc3QoJ2h0bWxiYXJzLXRlc3QtaGVscGVycy10ZXN0cy9odG1sYmFycy10ZXN0LWhlbHBlcnMuanMgc2hvdWxkIHBhc3MganNoaW50JywgZnVuY3Rpb24oKSB7IFxuICBvayh0cnVlLCAnaHRtbGJhcnMtdGVzdC1oZWxwZXJzLXRlc3RzL2h0bWxiYXJzLXRlc3QtaGVscGVycy5qcyBzaG91bGQgcGFzcyBqc2hpbnQuJyk7IFxufSk7XG4iXX0= | ||
define("htmlbars-test-helpers-tests/main-test", ["exports"], function (exports) {}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJodG1sYmFycy10ZXN0LWhlbHBlcnMtdGVzdHMvbWFpbi10ZXN0LmpzIiwic291cmNlc0NvbnRlbnQiOltdfQ== | ||
define('htmlbars-test-helpers-tests/main-test.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-test-helpers-tests'); | ||
@@ -25,3 +16,3 @@ test('htmlbars-test-helpers-tests/main-test.js should pass jshint', function () { | ||
}); | ||
}); | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXRlc3QtaGVscGVycy10ZXN0cy9tYWluLXRlc3QuanNoaW50LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxRQUFNLENBQUMsc0NBQXNDLENBQUMsQ0FBQztBQUMvQyxNQUFJLENBQUMsNkRBQTZELEVBQUUsWUFBVztBQUM3RSxNQUFFLENBQUMsSUFBSSxFQUFFLDhEQUE4RCxDQUFDLENBQUM7R0FDMUUsQ0FBQyxDQUFDIiwiZmlsZSI6Imh0bWxiYXJzLXRlc3QtaGVscGVycy10ZXN0cy9tYWluLXRlc3QuanNoaW50LmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlKCdKU0hpbnQgLSBodG1sYmFycy10ZXN0LWhlbHBlcnMtdGVzdHMnKTtcbnRlc3QoJ2h0bWxiYXJzLXRlc3QtaGVscGVycy10ZXN0cy9tYWluLXRlc3QuanMgc2hvdWxkIHBhc3MganNoaW50JywgZnVuY3Rpb24oKSB7IFxuICBvayh0cnVlLCAnaHRtbGJhcnMtdGVzdC1oZWxwZXJzLXRlc3RzL21haW4tdGVzdC5qcyBzaG91bGQgcGFzcyBqc2hpbnQuJyk7IFxufSk7XG4iXX0= |
@@ -1,5 +0,2 @@ | ||
define('htmlbars-tests/htmlbars-compiler.jshint', function () { | ||
'use strict'; | ||
define('htmlbars-tests/htmlbars-compiler.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-tests'); | ||
@@ -9,8 +6,5 @@ test('htmlbars-tests/htmlbars-compiler.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-tests/htmlbars-compiler/compiler.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLWNvbXBpbGVyLmpzaGludC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsUUFBTSxDQUFDLHlCQUF5QixDQUFDLENBQUM7QUFDbEMsTUFBSSxDQUFDLHdEQUF3RCxFQUFFLFlBQVc7QUFDeEUsTUFBRSxDQUFDLElBQUksRUFBRSx5REFBeUQsQ0FBQyxDQUFDO0dBQ3JFLENBQUMsQ0FBQyIsImZpbGUiOiJodG1sYmFycy10ZXN0cy9odG1sYmFycy1jb21waWxlci5qc2hpbnQuanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUoJ0pTSGludCAtIGh0bWxiYXJzLXRlc3RzJyk7XG50ZXN0KCdodG1sYmFycy10ZXN0cy9odG1sYmFycy1jb21waWxlci5qcyBzaG91bGQgcGFzcyBqc2hpbnQnLCBmdW5jdGlvbigpIHsgXG4gIG9rKHRydWUsICdodG1sYmFycy10ZXN0cy9odG1sYmFycy1jb21waWxlci5qcyBzaG91bGQgcGFzcyBqc2hpbnQuJyk7IFxufSk7XG4iXX0= | ||
define('htmlbars-tests/htmlbars-compiler/compiler.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-tests/htmlbars-compiler'); | ||
@@ -20,8 +14,5 @@ test('htmlbars-tests/htmlbars-compiler/compiler.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-tests/htmlbars-compiler/fragment-javascript-compiler.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLWNvbXBpbGVyL2NvbXBpbGVyLmpzaGludC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsUUFBTSxDQUFDLDJDQUEyQyxDQUFDLENBQUM7QUFDcEQsTUFBSSxDQUFDLGlFQUFpRSxFQUFFLFlBQVc7QUFDakYsTUFBRSxDQUFDLElBQUksRUFBRSxrRUFBa0UsQ0FBQyxDQUFDO0dBQzlFLENBQUMsQ0FBQyIsImZpbGUiOiJodG1sYmFycy10ZXN0cy9odG1sYmFycy1jb21waWxlci9jb21waWxlci5qc2hpbnQuanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUoJ0pTSGludCAtIGh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLWNvbXBpbGVyJyk7XG50ZXN0KCdodG1sYmFycy10ZXN0cy9odG1sYmFycy1jb21waWxlci9jb21waWxlci5qcyBzaG91bGQgcGFzcyBqc2hpbnQnLCBmdW5jdGlvbigpIHsgXG4gIG9rKHRydWUsICdodG1sYmFycy10ZXN0cy9odG1sYmFycy1jb21waWxlci9jb21waWxlci5qcyBzaG91bGQgcGFzcyBqc2hpbnQuJyk7IFxufSk7XG4iXX0= | ||
define('htmlbars-tests/htmlbars-compiler/fragment-javascript-compiler.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-tests/htmlbars-compiler'); | ||
@@ -31,8 +22,5 @@ test('htmlbars-tests/htmlbars-compiler/fragment-javascript-compiler.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-tests/htmlbars-compiler/fragment-opcode-compiler.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLWNvbXBpbGVyL2ZyYWdtZW50LWphdmFzY3JpcHQtY29tcGlsZXIuanNoaW50LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxRQUFNLENBQUMsMkNBQTJDLENBQUMsQ0FBQztBQUNwRCxNQUFJLENBQUMscUZBQXFGLEVBQUUsWUFBVztBQUNyRyxNQUFFLENBQUMsSUFBSSxFQUFFLHNGQUFzRixDQUFDLENBQUM7R0FDbEcsQ0FBQyxDQUFDIiwiZmlsZSI6Imh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLWNvbXBpbGVyL2ZyYWdtZW50LWphdmFzY3JpcHQtY29tcGlsZXIuanNoaW50LmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlKCdKU0hpbnQgLSBodG1sYmFycy10ZXN0cy9odG1sYmFycy1jb21waWxlcicpO1xudGVzdCgnaHRtbGJhcnMtdGVzdHMvaHRtbGJhcnMtY29tcGlsZXIvZnJhZ21lbnQtamF2YXNjcmlwdC1jb21waWxlci5qcyBzaG91bGQgcGFzcyBqc2hpbnQnLCBmdW5jdGlvbigpIHsgXG4gIG9rKHRydWUsICdodG1sYmFycy10ZXN0cy9odG1sYmFycy1jb21waWxlci9mcmFnbWVudC1qYXZhc2NyaXB0LWNvbXBpbGVyLmpzIHNob3VsZCBwYXNzIGpzaGludC4nKTsgXG59KTtcbiJdfQ== | ||
define('htmlbars-tests/htmlbars-compiler/fragment-opcode-compiler.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-tests/htmlbars-compiler'); | ||
@@ -42,8 +30,5 @@ test('htmlbars-tests/htmlbars-compiler/fragment-opcode-compiler.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-tests/htmlbars-compiler/hydration-javascript-compiler.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLWNvbXBpbGVyL2ZyYWdtZW50LW9wY29kZS1jb21waWxlci5qc2hpbnQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU0sQ0FBQywyQ0FBMkMsQ0FBQyxDQUFDO0FBQ3BELE1BQUksQ0FBQyxpRkFBaUYsRUFBRSxZQUFXO0FBQ2pHLE1BQUUsQ0FBQyxJQUFJLEVBQUUsa0ZBQWtGLENBQUMsQ0FBQztHQUM5RixDQUFDLENBQUMiLCJmaWxlIjoiaHRtbGJhcnMtdGVzdHMvaHRtbGJhcnMtY29tcGlsZXIvZnJhZ21lbnQtb3Bjb2RlLWNvbXBpbGVyLmpzaGludC5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZSgnSlNIaW50IC0gaHRtbGJhcnMtdGVzdHMvaHRtbGJhcnMtY29tcGlsZXInKTtcbnRlc3QoJ2h0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLWNvbXBpbGVyL2ZyYWdtZW50LW9wY29kZS1jb21waWxlci5qcyBzaG91bGQgcGFzcyBqc2hpbnQnLCBmdW5jdGlvbigpIHsgXG4gIG9rKHRydWUsICdodG1sYmFycy10ZXN0cy9odG1sYmFycy1jb21waWxlci9mcmFnbWVudC1vcGNvZGUtY29tcGlsZXIuanMgc2hvdWxkIHBhc3MganNoaW50LicpOyBcbn0pO1xuIl19 | ||
define('htmlbars-tests/htmlbars-compiler/hydration-javascript-compiler.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-tests/htmlbars-compiler'); | ||
@@ -53,8 +38,5 @@ test('htmlbars-tests/htmlbars-compiler/hydration-javascript-compiler.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-tests/htmlbars-compiler/hydration-opcode-compiler.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLWNvbXBpbGVyL2h5ZHJhdGlvbi1qYXZhc2NyaXB0LWNvbXBpbGVyLmpzaGludC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsUUFBTSxDQUFDLDJDQUEyQyxDQUFDLENBQUM7QUFDcEQsTUFBSSxDQUFDLHNGQUFzRixFQUFFLFlBQVc7QUFDdEcsTUFBRSxDQUFDLElBQUksRUFBRSx1RkFBdUYsQ0FBQyxDQUFDO0dBQ25HLENBQUMsQ0FBQyIsImZpbGUiOiJodG1sYmFycy10ZXN0cy9odG1sYmFycy1jb21waWxlci9oeWRyYXRpb24tamF2YXNjcmlwdC1jb21waWxlci5qc2hpbnQuanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUoJ0pTSGludCAtIGh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLWNvbXBpbGVyJyk7XG50ZXN0KCdodG1sYmFycy10ZXN0cy9odG1sYmFycy1jb21waWxlci9oeWRyYXRpb24tamF2YXNjcmlwdC1jb21waWxlci5qcyBzaG91bGQgcGFzcyBqc2hpbnQnLCBmdW5jdGlvbigpIHsgXG4gIG9rKHRydWUsICdodG1sYmFycy10ZXN0cy9odG1sYmFycy1jb21waWxlci9oeWRyYXRpb24tamF2YXNjcmlwdC1jb21waWxlci5qcyBzaG91bGQgcGFzcyBqc2hpbnQuJyk7IFxufSk7XG4iXX0= | ||
define('htmlbars-tests/htmlbars-compiler/hydration-opcode-compiler.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-tests/htmlbars-compiler'); | ||
@@ -64,8 +46,5 @@ test('htmlbars-tests/htmlbars-compiler/hydration-opcode-compiler.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-tests/htmlbars-compiler/template-compiler.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLWNvbXBpbGVyL2h5ZHJhdGlvbi1vcGNvZGUtY29tcGlsZXIuanNoaW50LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxRQUFNLENBQUMsMkNBQTJDLENBQUMsQ0FBQztBQUNwRCxNQUFJLENBQUMsa0ZBQWtGLEVBQUUsWUFBVztBQUNsRyxNQUFFLENBQUMsSUFBSSxFQUFFLG1GQUFtRixDQUFDLENBQUM7R0FDL0YsQ0FBQyxDQUFDIiwiZmlsZSI6Imh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLWNvbXBpbGVyL2h5ZHJhdGlvbi1vcGNvZGUtY29tcGlsZXIuanNoaW50LmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlKCdKU0hpbnQgLSBodG1sYmFycy10ZXN0cy9odG1sYmFycy1jb21waWxlcicpO1xudGVzdCgnaHRtbGJhcnMtdGVzdHMvaHRtbGJhcnMtY29tcGlsZXIvaHlkcmF0aW9uLW9wY29kZS1jb21waWxlci5qcyBzaG91bGQgcGFzcyBqc2hpbnQnLCBmdW5jdGlvbigpIHsgXG4gIG9rKHRydWUsICdodG1sYmFycy10ZXN0cy9odG1sYmFycy1jb21waWxlci9oeWRyYXRpb24tb3Bjb2RlLWNvbXBpbGVyLmpzIHNob3VsZCBwYXNzIGpzaGludC4nKTsgXG59KTtcbiJdfQ== | ||
define('htmlbars-tests/htmlbars-compiler/template-compiler.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-tests/htmlbars-compiler'); | ||
@@ -75,8 +54,5 @@ test('htmlbars-tests/htmlbars-compiler/template-compiler.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-tests/htmlbars-compiler/template-visitor.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLWNvbXBpbGVyL3RlbXBsYXRlLWNvbXBpbGVyLmpzaGludC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsUUFBTSxDQUFDLDJDQUEyQyxDQUFDLENBQUM7QUFDcEQsTUFBSSxDQUFDLDBFQUEwRSxFQUFFLFlBQVc7QUFDMUYsTUFBRSxDQUFDLElBQUksRUFBRSwyRUFBMkUsQ0FBQyxDQUFDO0dBQ3ZGLENBQUMsQ0FBQyIsImZpbGUiOiJodG1sYmFycy10ZXN0cy9odG1sYmFycy1jb21waWxlci90ZW1wbGF0ZS1jb21waWxlci5qc2hpbnQuanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUoJ0pTSGludCAtIGh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLWNvbXBpbGVyJyk7XG50ZXN0KCdodG1sYmFycy10ZXN0cy9odG1sYmFycy1jb21waWxlci90ZW1wbGF0ZS1jb21waWxlci5qcyBzaG91bGQgcGFzcyBqc2hpbnQnLCBmdW5jdGlvbigpIHsgXG4gIG9rKHRydWUsICdodG1sYmFycy10ZXN0cy9odG1sYmFycy1jb21waWxlci90ZW1wbGF0ZS1jb21waWxlci5qcyBzaG91bGQgcGFzcyBqc2hpbnQuJyk7IFxufSk7XG4iXX0= | ||
define('htmlbars-tests/htmlbars-compiler/template-visitor.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-tests/htmlbars-compiler'); | ||
@@ -86,8 +62,5 @@ test('htmlbars-tests/htmlbars-compiler/template-visitor.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-tests/htmlbars-compiler/utils.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLWNvbXBpbGVyL3RlbXBsYXRlLXZpc2l0b3IuanNoaW50LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxRQUFNLENBQUMsMkNBQTJDLENBQUMsQ0FBQztBQUNwRCxNQUFJLENBQUMseUVBQXlFLEVBQUUsWUFBVztBQUN6RixNQUFFLENBQUMsSUFBSSxFQUFFLDBFQUEwRSxDQUFDLENBQUM7R0FDdEYsQ0FBQyxDQUFDIiwiZmlsZSI6Imh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLWNvbXBpbGVyL3RlbXBsYXRlLXZpc2l0b3IuanNoaW50LmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlKCdKU0hpbnQgLSBodG1sYmFycy10ZXN0cy9odG1sYmFycy1jb21waWxlcicpO1xudGVzdCgnaHRtbGJhcnMtdGVzdHMvaHRtbGJhcnMtY29tcGlsZXIvdGVtcGxhdGUtdmlzaXRvci5qcyBzaG91bGQgcGFzcyBqc2hpbnQnLCBmdW5jdGlvbigpIHsgXG4gIG9rKHRydWUsICdodG1sYmFycy10ZXN0cy9odG1sYmFycy1jb21waWxlci90ZW1wbGF0ZS12aXNpdG9yLmpzIHNob3VsZCBwYXNzIGpzaGludC4nKTsgXG59KTtcbiJdfQ== | ||
define('htmlbars-tests/htmlbars-compiler/utils.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-tests/htmlbars-compiler'); | ||
@@ -97,19 +70,14 @@ test('htmlbars-tests/htmlbars-compiler/utils.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-tests/htmlbars-node-test', ['../htmlbars'], function (htmlbars) { | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLWNvbXBpbGVyL3V0aWxzLmpzaGludC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsUUFBTSxDQUFDLDJDQUEyQyxDQUFDLENBQUM7QUFDcEQsTUFBSSxDQUFDLDhEQUE4RCxFQUFFLFlBQVc7QUFDOUUsTUFBRSxDQUFDLElBQUksRUFBRSwrREFBK0QsQ0FBQyxDQUFDO0dBQzNFLENBQUMsQ0FBQyIsImZpbGUiOiJodG1sYmFycy10ZXN0cy9odG1sYmFycy1jb21waWxlci91dGlscy5qc2hpbnQuanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUoJ0pTSGludCAtIGh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLWNvbXBpbGVyJyk7XG50ZXN0KCdodG1sYmFycy10ZXN0cy9odG1sYmFycy1jb21waWxlci91dGlscy5qcyBzaG91bGQgcGFzcyBqc2hpbnQnLCBmdW5jdGlvbigpIHsgXG4gIG9rKHRydWUsICdodG1sYmFycy10ZXN0cy9odG1sYmFycy1jb21waWxlci91dGlscy5qcyBzaG91bGQgcGFzcyBqc2hpbnQuJyk7IFxufSk7XG4iXX0= | ||
define("htmlbars-tests/htmlbars-node-test", ["exports", "../htmlbars"], function (exports, _htmlbars) { | ||
'use strict'; | ||
QUnit.module("htmlbars"); | ||
test("compile is exported", function () { | ||
ok(typeof htmlbars.compile === "function", "compile is exported"); | ||
ok(typeof _htmlbars.compile === "function", "compile is exported"); | ||
}); | ||
}); | ||
define('htmlbars-tests/htmlbars-node-test.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLW5vZGUtdGVzdC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUVBLE9BQUssQ0FBQyxNQUFNLENBQUMsVUFBVSxDQUFDLENBQUM7O0FBRXpCLE1BQUksQ0FBQyxxQkFBcUIsRUFBRSxZQUFVO0FBQ3BDLE1BQUUsQ0FBQyxpQkFMRyxPQUFPLEFBS0ksS0FBSyxVQUFVLEVBQUUscUJBQXFCLENBQUMsQ0FBQztHQUMxRCxDQUFDLENBQUMiLCJmaWxlIjoiaHRtbGJhcnMtdGVzdHMvaHRtbGJhcnMtbm9kZS10ZXN0LmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtjb21waWxlfSBmcm9tIFwiLi4vaHRtbGJhcnNcIjtcblxuUVVuaXQubW9kdWxlKCdodG1sYmFycycpO1xuXG50ZXN0KFwiY29tcGlsZSBpcyBleHBvcnRlZFwiLCBmdW5jdGlvbigpe1xuICBvayh0eXBlb2YgY29tcGlsZSA9PT0gJ2Z1bmN0aW9uJywgJ2NvbXBpbGUgaXMgZXhwb3J0ZWQnKTtcbn0pO1xuIl19 | ||
define('htmlbars-tests/htmlbars-node-test.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-tests'); | ||
@@ -119,8 +87,5 @@ test('htmlbars-tests/htmlbars-node-test.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-tests/htmlbars-runtime.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLW5vZGUtdGVzdC5qc2hpbnQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU0sQ0FBQyx5QkFBeUIsQ0FBQyxDQUFDO0FBQ2xDLE1BQUksQ0FBQyx5REFBeUQsRUFBRSxZQUFXO0FBQ3pFLE1BQUUsQ0FBQyxJQUFJLEVBQUUsMERBQTBELENBQUMsQ0FBQztHQUN0RSxDQUFDLENBQUMiLCJmaWxlIjoiaHRtbGJhcnMtdGVzdHMvaHRtbGJhcnMtbm9kZS10ZXN0LmpzaGludC5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZSgnSlNIaW50IC0gaHRtbGJhcnMtdGVzdHMnKTtcbnRlc3QoJ2h0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLW5vZGUtdGVzdC5qcyBzaG91bGQgcGFzcyBqc2hpbnQnLCBmdW5jdGlvbigpIHsgXG4gIG9rKHRydWUsICdodG1sYmFycy10ZXN0cy9odG1sYmFycy1ub2RlLXRlc3QuanMgc2hvdWxkIHBhc3MganNoaW50LicpOyBcbn0pO1xuIl19 | ||
define('htmlbars-tests/htmlbars-runtime.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-tests'); | ||
@@ -130,8 +95,5 @@ test('htmlbars-tests/htmlbars-runtime.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-tests/htmlbars-runtime/expression-visitor.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXJ1bnRpbWUuanNoaW50LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxRQUFNLENBQUMseUJBQXlCLENBQUMsQ0FBQztBQUNsQyxNQUFJLENBQUMsdURBQXVELEVBQUUsWUFBVztBQUN2RSxNQUFFLENBQUMsSUFBSSxFQUFFLHdEQUF3RCxDQUFDLENBQUM7R0FDcEUsQ0FBQyxDQUFDIiwiZmlsZSI6Imh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXJ1bnRpbWUuanNoaW50LmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlKCdKU0hpbnQgLSBodG1sYmFycy10ZXN0cycpO1xudGVzdCgnaHRtbGJhcnMtdGVzdHMvaHRtbGJhcnMtcnVudGltZS5qcyBzaG91bGQgcGFzcyBqc2hpbnQnLCBmdW5jdGlvbigpIHsgXG4gIG9rKHRydWUsICdodG1sYmFycy10ZXN0cy9odG1sYmFycy1ydW50aW1lLmpzIHNob3VsZCBwYXNzIGpzaGludC4nKTsgXG59KTtcbiJdfQ== | ||
define('htmlbars-tests/htmlbars-runtime/expression-visitor.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-tests/htmlbars-runtime'); | ||
@@ -141,8 +103,5 @@ test('htmlbars-tests/htmlbars-runtime/expression-visitor.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-tests/htmlbars-runtime/hooks.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXJ1bnRpbWUvZXhwcmVzc2lvbi12aXNpdG9yLmpzaGludC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsUUFBTSxDQUFDLDBDQUEwQyxDQUFDLENBQUM7QUFDbkQsTUFBSSxDQUFDLDBFQUEwRSxFQUFFLFlBQVc7QUFDMUYsTUFBRSxDQUFDLElBQUksRUFBRSwyRUFBMkUsQ0FBQyxDQUFDO0dBQ3ZGLENBQUMsQ0FBQyIsImZpbGUiOiJodG1sYmFycy10ZXN0cy9odG1sYmFycy1ydW50aW1lL2V4cHJlc3Npb24tdmlzaXRvci5qc2hpbnQuanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUoJ0pTSGludCAtIGh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXJ1bnRpbWUnKTtcbnRlc3QoJ2h0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXJ1bnRpbWUvZXhwcmVzc2lvbi12aXNpdG9yLmpzIHNob3VsZCBwYXNzIGpzaGludCcsIGZ1bmN0aW9uKCkgeyBcbiAgb2sodHJ1ZSwgJ2h0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXJ1bnRpbWUvZXhwcmVzc2lvbi12aXNpdG9yLmpzIHNob3VsZCBwYXNzIGpzaGludC4nKTsgXG59KTtcbiJdfQ== | ||
define('htmlbars-tests/htmlbars-runtime/hooks.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-tests/htmlbars-runtime'); | ||
@@ -152,8 +111,5 @@ test('htmlbars-tests/htmlbars-runtime/hooks.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-tests/htmlbars-runtime/morph.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXJ1bnRpbWUvaG9va3MuanNoaW50LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxRQUFNLENBQUMsMENBQTBDLENBQUMsQ0FBQztBQUNuRCxNQUFJLENBQUMsNkRBQTZELEVBQUUsWUFBVztBQUM3RSxNQUFFLENBQUMsSUFBSSxFQUFFLDhEQUE4RCxDQUFDLENBQUM7R0FDMUUsQ0FBQyxDQUFDIiwiZmlsZSI6Imh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXJ1bnRpbWUvaG9va3MuanNoaW50LmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlKCdKU0hpbnQgLSBodG1sYmFycy10ZXN0cy9odG1sYmFycy1ydW50aW1lJyk7XG50ZXN0KCdodG1sYmFycy10ZXN0cy9odG1sYmFycy1ydW50aW1lL2hvb2tzLmpzIHNob3VsZCBwYXNzIGpzaGludCcsIGZ1bmN0aW9uKCkgeyBcbiAgb2sodHJ1ZSwgJ2h0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXJ1bnRpbWUvaG9va3MuanMgc2hvdWxkIHBhc3MganNoaW50LicpOyBcbn0pO1xuIl19 | ||
define('htmlbars-tests/htmlbars-runtime/morph.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-tests/htmlbars-runtime'); | ||
@@ -163,8 +119,5 @@ test('htmlbars-tests/htmlbars-runtime/morph.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-tests/htmlbars-runtime/render.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXJ1bnRpbWUvbW9ycGguanNoaW50LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxRQUFNLENBQUMsMENBQTBDLENBQUMsQ0FBQztBQUNuRCxNQUFJLENBQUMsNkRBQTZELEVBQUUsWUFBVztBQUM3RSxNQUFFLENBQUMsSUFBSSxFQUFFLDhEQUE4RCxDQUFDLENBQUM7R0FDMUUsQ0FBQyxDQUFDIiwiZmlsZSI6Imh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXJ1bnRpbWUvbW9ycGguanNoaW50LmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlKCdKU0hpbnQgLSBodG1sYmFycy10ZXN0cy9odG1sYmFycy1ydW50aW1lJyk7XG50ZXN0KCdodG1sYmFycy10ZXN0cy9odG1sYmFycy1ydW50aW1lL21vcnBoLmpzIHNob3VsZCBwYXNzIGpzaGludCcsIGZ1bmN0aW9uKCkgeyBcbiAgb2sodHJ1ZSwgJ2h0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXJ1bnRpbWUvbW9ycGguanMgc2hvdWxkIHBhc3MganNoaW50LicpOyBcbn0pO1xuIl19 | ||
define('htmlbars-tests/htmlbars-runtime/render.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-tests/htmlbars-runtime'); | ||
@@ -174,8 +127,5 @@ test('htmlbars-tests/htmlbars-runtime/render.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-tests/htmlbars-syntax.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXJ1bnRpbWUvcmVuZGVyLmpzaGludC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsUUFBTSxDQUFDLDBDQUEwQyxDQUFDLENBQUM7QUFDbkQsTUFBSSxDQUFDLDhEQUE4RCxFQUFFLFlBQVc7QUFDOUUsTUFBRSxDQUFDLElBQUksRUFBRSwrREFBK0QsQ0FBQyxDQUFDO0dBQzNFLENBQUMsQ0FBQyIsImZpbGUiOiJodG1sYmFycy10ZXN0cy9odG1sYmFycy1ydW50aW1lL3JlbmRlci5qc2hpbnQuanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUoJ0pTSGludCAtIGh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXJ1bnRpbWUnKTtcbnRlc3QoJ2h0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXJ1bnRpbWUvcmVuZGVyLmpzIHNob3VsZCBwYXNzIGpzaGludCcsIGZ1bmN0aW9uKCkgeyBcbiAgb2sodHJ1ZSwgJ2h0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXJ1bnRpbWUvcmVuZGVyLmpzIHNob3VsZCBwYXNzIGpzaGludC4nKTsgXG59KTtcbiJdfQ== | ||
define('htmlbars-tests/htmlbars-syntax.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-tests'); | ||
@@ -185,8 +135,5 @@ test('htmlbars-tests/htmlbars-syntax.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-tests/htmlbars-syntax/builders.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXN5bnRheC5qc2hpbnQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU0sQ0FBQyx5QkFBeUIsQ0FBQyxDQUFDO0FBQ2xDLE1BQUksQ0FBQyxzREFBc0QsRUFBRSxZQUFXO0FBQ3RFLE1BQUUsQ0FBQyxJQUFJLEVBQUUsdURBQXVELENBQUMsQ0FBQztHQUNuRSxDQUFDLENBQUMiLCJmaWxlIjoiaHRtbGJhcnMtdGVzdHMvaHRtbGJhcnMtc3ludGF4LmpzaGludC5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZSgnSlNIaW50IC0gaHRtbGJhcnMtdGVzdHMnKTtcbnRlc3QoJ2h0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXN5bnRheC5qcyBzaG91bGQgcGFzcyBqc2hpbnQnLCBmdW5jdGlvbigpIHsgXG4gIG9rKHRydWUsICdodG1sYmFycy10ZXN0cy9odG1sYmFycy1zeW50YXguanMgc2hvdWxkIHBhc3MganNoaW50LicpOyBcbn0pO1xuIl19 | ||
define('htmlbars-tests/htmlbars-syntax/builders.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-tests/htmlbars-syntax'); | ||
@@ -196,8 +143,5 @@ test('htmlbars-tests/htmlbars-syntax/builders.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-tests/htmlbars-syntax/parser.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXN5bnRheC9idWlsZGVycy5qc2hpbnQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU0sQ0FBQyx5Q0FBeUMsQ0FBQyxDQUFDO0FBQ2xELE1BQUksQ0FBQywrREFBK0QsRUFBRSxZQUFXO0FBQy9FLE1BQUUsQ0FBQyxJQUFJLEVBQUUsZ0VBQWdFLENBQUMsQ0FBQztHQUM1RSxDQUFDLENBQUMiLCJmaWxlIjoiaHRtbGJhcnMtdGVzdHMvaHRtbGJhcnMtc3ludGF4L2J1aWxkZXJzLmpzaGludC5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZSgnSlNIaW50IC0gaHRtbGJhcnMtdGVzdHMvaHRtbGJhcnMtc3ludGF4Jyk7XG50ZXN0KCdodG1sYmFycy10ZXN0cy9odG1sYmFycy1zeW50YXgvYnVpbGRlcnMuanMgc2hvdWxkIHBhc3MganNoaW50JywgZnVuY3Rpb24oKSB7IFxuICBvayh0cnVlLCAnaHRtbGJhcnMtdGVzdHMvaHRtbGJhcnMtc3ludGF4L2J1aWxkZXJzLmpzIHNob3VsZCBwYXNzIGpzaGludC4nKTsgXG59KTtcbiJdfQ== | ||
define('htmlbars-tests/htmlbars-syntax/parser.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-tests/htmlbars-syntax'); | ||
@@ -207,8 +151,5 @@ test('htmlbars-tests/htmlbars-syntax/parser.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-tests/htmlbars-syntax/parser/handlebars-node-visitors.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXN5bnRheC9wYXJzZXIuanNoaW50LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxRQUFNLENBQUMseUNBQXlDLENBQUMsQ0FBQztBQUNsRCxNQUFJLENBQUMsNkRBQTZELEVBQUUsWUFBVztBQUM3RSxNQUFFLENBQUMsSUFBSSxFQUFFLDhEQUE4RCxDQUFDLENBQUM7R0FDMUUsQ0FBQyxDQUFDIiwiZmlsZSI6Imh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXN5bnRheC9wYXJzZXIuanNoaW50LmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlKCdKU0hpbnQgLSBodG1sYmFycy10ZXN0cy9odG1sYmFycy1zeW50YXgnKTtcbnRlc3QoJ2h0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXN5bnRheC9wYXJzZXIuanMgc2hvdWxkIHBhc3MganNoaW50JywgZnVuY3Rpb24oKSB7IFxuICBvayh0cnVlLCAnaHRtbGJhcnMtdGVzdHMvaHRtbGJhcnMtc3ludGF4L3BhcnNlci5qcyBzaG91bGQgcGFzcyBqc2hpbnQuJyk7IFxufSk7XG4iXX0= | ||
define('htmlbars-tests/htmlbars-syntax/parser/handlebars-node-visitors.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-tests/htmlbars-syntax/parser'); | ||
@@ -218,8 +159,5 @@ test('htmlbars-tests/htmlbars-syntax/parser/handlebars-node-visitors.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-tests/htmlbars-syntax/parser/tokenizer-event-handlers.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXN5bnRheC9wYXJzZXIvaGFuZGxlYmFycy1ub2RlLXZpc2l0b3JzLmpzaGludC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsUUFBTSxDQUFDLGdEQUFnRCxDQUFDLENBQUM7QUFDekQsTUFBSSxDQUFDLHNGQUFzRixFQUFFLFlBQVc7QUFDdEcsTUFBRSxDQUFDLElBQUksRUFBRSx1RkFBdUYsQ0FBQyxDQUFDO0dBQ25HLENBQUMsQ0FBQyIsImZpbGUiOiJodG1sYmFycy10ZXN0cy9odG1sYmFycy1zeW50YXgvcGFyc2VyL2hhbmRsZWJhcnMtbm9kZS12aXNpdG9ycy5qc2hpbnQuanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUoJ0pTSGludCAtIGh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXN5bnRheC9wYXJzZXInKTtcbnRlc3QoJ2h0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXN5bnRheC9wYXJzZXIvaGFuZGxlYmFycy1ub2RlLXZpc2l0b3JzLmpzIHNob3VsZCBwYXNzIGpzaGludCcsIGZ1bmN0aW9uKCkgeyBcbiAgb2sodHJ1ZSwgJ2h0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXN5bnRheC9wYXJzZXIvaGFuZGxlYmFycy1ub2RlLXZpc2l0b3JzLmpzIHNob3VsZCBwYXNzIGpzaGludC4nKTsgXG59KTtcbiJdfQ== | ||
define('htmlbars-tests/htmlbars-syntax/parser/tokenizer-event-handlers.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-tests/htmlbars-syntax/parser'); | ||
@@ -229,8 +167,33 @@ test('htmlbars-tests/htmlbars-syntax/parser/tokenizer-event-handlers.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-tests/htmlbars-syntax/utils.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXN5bnRheC9wYXJzZXIvdG9rZW5pemVyLWV2ZW50LWhhbmRsZXJzLmpzaGludC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsUUFBTSxDQUFDLGdEQUFnRCxDQUFDLENBQUM7QUFDekQsTUFBSSxDQUFDLHNGQUFzRixFQUFFLFlBQVc7QUFDdEcsTUFBRSxDQUFDLElBQUksRUFBRSx1RkFBdUYsQ0FBQyxDQUFDO0dBQ25HLENBQUMsQ0FBQyIsImZpbGUiOiJodG1sYmFycy10ZXN0cy9odG1sYmFycy1zeW50YXgvcGFyc2VyL3Rva2VuaXplci1ldmVudC1oYW5kbGVycy5qc2hpbnQuanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUoJ0pTSGludCAtIGh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXN5bnRheC9wYXJzZXInKTtcbnRlc3QoJ2h0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXN5bnRheC9wYXJzZXIvdG9rZW5pemVyLWV2ZW50LWhhbmRsZXJzLmpzIHNob3VsZCBwYXNzIGpzaGludCcsIGZ1bmN0aW9uKCkgeyBcbiAgb2sodHJ1ZSwgJ2h0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXN5bnRheC9wYXJzZXIvdG9rZW5pemVyLWV2ZW50LWhhbmRsZXJzLmpzIHNob3VsZCBwYXNzIGpzaGludC4nKTsgXG59KTtcbiJdfQ== | ||
define('htmlbars-tests/htmlbars-syntax/traversal/errors.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-tests/htmlbars-syntax/traversal'); | ||
test('htmlbars-tests/htmlbars-syntax/traversal/errors.js should pass jshint', function () { | ||
ok(true, 'htmlbars-tests/htmlbars-syntax/traversal/errors.js should pass jshint.'); | ||
}); | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXN5bnRheC90cmF2ZXJzYWwvZXJyb3JzLmpzaGludC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsUUFBTSxDQUFDLG1EQUFtRCxDQUFDLENBQUM7QUFDNUQsTUFBSSxDQUFDLHVFQUF1RSxFQUFFLFlBQVc7QUFDdkYsTUFBRSxDQUFDLElBQUksRUFBRSx3RUFBd0UsQ0FBQyxDQUFDO0dBQ3BGLENBQUMsQ0FBQyIsImZpbGUiOiJodG1sYmFycy10ZXN0cy9odG1sYmFycy1zeW50YXgvdHJhdmVyc2FsL2Vycm9ycy5qc2hpbnQuanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUoJ0pTSGludCAtIGh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXN5bnRheC90cmF2ZXJzYWwnKTtcbnRlc3QoJ2h0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXN5bnRheC90cmF2ZXJzYWwvZXJyb3JzLmpzIHNob3VsZCBwYXNzIGpzaGludCcsIGZ1bmN0aW9uKCkgeyBcbiAgb2sodHJ1ZSwgJ2h0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXN5bnRheC90cmF2ZXJzYWwvZXJyb3JzLmpzIHNob3VsZCBwYXNzIGpzaGludC4nKTsgXG59KTtcbiJdfQ== | ||
define('htmlbars-tests/htmlbars-syntax/traversal/traverse.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-tests/htmlbars-syntax/traversal'); | ||
test('htmlbars-tests/htmlbars-syntax/traversal/traverse.js should pass jshint', function () { | ||
ok(true, 'htmlbars-tests/htmlbars-syntax/traversal/traverse.js should pass jshint.'); | ||
}); | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXN5bnRheC90cmF2ZXJzYWwvdHJhdmVyc2UuanNoaW50LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxRQUFNLENBQUMsbURBQW1ELENBQUMsQ0FBQztBQUM1RCxNQUFJLENBQUMseUVBQXlFLEVBQUUsWUFBVztBQUN6RixNQUFFLENBQUMsSUFBSSxFQUFFLDBFQUEwRSxDQUFDLENBQUM7R0FDdEYsQ0FBQyxDQUFDIiwiZmlsZSI6Imh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXN5bnRheC90cmF2ZXJzYWwvdHJhdmVyc2UuanNoaW50LmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlKCdKU0hpbnQgLSBodG1sYmFycy10ZXN0cy9odG1sYmFycy1zeW50YXgvdHJhdmVyc2FsJyk7XG50ZXN0KCdodG1sYmFycy10ZXN0cy9odG1sYmFycy1zeW50YXgvdHJhdmVyc2FsL3RyYXZlcnNlLmpzIHNob3VsZCBwYXNzIGpzaGludCcsIGZ1bmN0aW9uKCkgeyBcbiAgb2sodHJ1ZSwgJ2h0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXN5bnRheC90cmF2ZXJzYWwvdHJhdmVyc2UuanMgc2hvdWxkIHBhc3MganNoaW50LicpOyBcbn0pO1xuIl19 | ||
define('htmlbars-tests/htmlbars-syntax/traversal/walker.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-tests/htmlbars-syntax/traversal'); | ||
test('htmlbars-tests/htmlbars-syntax/traversal/walker.js should pass jshint', function () { | ||
ok(true, 'htmlbars-tests/htmlbars-syntax/traversal/walker.js should pass jshint.'); | ||
}); | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXN5bnRheC90cmF2ZXJzYWwvd2Fsa2VyLmpzaGludC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsUUFBTSxDQUFDLG1EQUFtRCxDQUFDLENBQUM7QUFDNUQsTUFBSSxDQUFDLHVFQUF1RSxFQUFFLFlBQVc7QUFDdkYsTUFBRSxDQUFDLElBQUksRUFBRSx3RUFBd0UsQ0FBQyxDQUFDO0dBQ3BGLENBQUMsQ0FBQyIsImZpbGUiOiJodG1sYmFycy10ZXN0cy9odG1sYmFycy1zeW50YXgvdHJhdmVyc2FsL3dhbGtlci5qc2hpbnQuanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUoJ0pTSGludCAtIGh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXN5bnRheC90cmF2ZXJzYWwnKTtcbnRlc3QoJ2h0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXN5bnRheC90cmF2ZXJzYWwvd2Fsa2VyLmpzIHNob3VsZCBwYXNzIGpzaGludCcsIGZ1bmN0aW9uKCkgeyBcbiAgb2sodHJ1ZSwgJ2h0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXN5bnRheC90cmF2ZXJzYWwvd2Fsa2VyLmpzIHNob3VsZCBwYXNzIGpzaGludC4nKTsgXG59KTtcbiJdfQ== | ||
define('htmlbars-tests/htmlbars-syntax/types/visitor-keys.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-tests/htmlbars-syntax/types'); | ||
test('htmlbars-tests/htmlbars-syntax/types/visitor-keys.js should pass jshint', function () { | ||
ok(true, 'htmlbars-tests/htmlbars-syntax/types/visitor-keys.js should pass jshint.'); | ||
}); | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXN5bnRheC90eXBlcy92aXNpdG9yLWtleXMuanNoaW50LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxRQUFNLENBQUMsK0NBQStDLENBQUMsQ0FBQztBQUN4RCxNQUFJLENBQUMseUVBQXlFLEVBQUUsWUFBVztBQUN6RixNQUFFLENBQUMsSUFBSSxFQUFFLDBFQUEwRSxDQUFDLENBQUM7R0FDdEYsQ0FBQyxDQUFDIiwiZmlsZSI6Imh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXN5bnRheC90eXBlcy92aXNpdG9yLWtleXMuanNoaW50LmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlKCdKU0hpbnQgLSBodG1sYmFycy10ZXN0cy9odG1sYmFycy1zeW50YXgvdHlwZXMnKTtcbnRlc3QoJ2h0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXN5bnRheC90eXBlcy92aXNpdG9yLWtleXMuanMgc2hvdWxkIHBhc3MganNoaW50JywgZnVuY3Rpb24oKSB7IFxuICBvayh0cnVlLCAnaHRtbGJhcnMtdGVzdHMvaHRtbGJhcnMtc3ludGF4L3R5cGVzL3Zpc2l0b3Ita2V5cy5qcyBzaG91bGQgcGFzcyBqc2hpbnQuJyk7IFxufSk7XG4iXX0= | ||
define('htmlbars-tests/htmlbars-syntax/utils.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-tests/htmlbars-syntax'); | ||
@@ -240,18 +203,5 @@ test('htmlbars-tests/htmlbars-syntax/utils.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-tests/htmlbars-syntax/walker.jshint', function () { | ||
'use strict'; | ||
module('JSHint - htmlbars-tests/htmlbars-syntax'); | ||
test('htmlbars-tests/htmlbars-syntax/walker.js should pass jshint', function () { | ||
ok(true, 'htmlbars-tests/htmlbars-syntax/walker.js should pass jshint.'); | ||
}); | ||
}); | ||
define('htmlbars-tests/htmlbars-util.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXN5bnRheC91dGlscy5qc2hpbnQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU0sQ0FBQyx5Q0FBeUMsQ0FBQyxDQUFDO0FBQ2xELE1BQUksQ0FBQyw0REFBNEQsRUFBRSxZQUFXO0FBQzVFLE1BQUUsQ0FBQyxJQUFJLEVBQUUsNkRBQTZELENBQUMsQ0FBQztHQUN6RSxDQUFDLENBQUMiLCJmaWxlIjoiaHRtbGJhcnMtdGVzdHMvaHRtbGJhcnMtc3ludGF4L3V0aWxzLmpzaGludC5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZSgnSlNIaW50IC0gaHRtbGJhcnMtdGVzdHMvaHRtbGJhcnMtc3ludGF4Jyk7XG50ZXN0KCdodG1sYmFycy10ZXN0cy9odG1sYmFycy1zeW50YXgvdXRpbHMuanMgc2hvdWxkIHBhc3MganNoaW50JywgZnVuY3Rpb24oKSB7IFxuICBvayh0cnVlLCAnaHRtbGJhcnMtdGVzdHMvaHRtbGJhcnMtc3ludGF4L3V0aWxzLmpzIHNob3VsZCBwYXNzIGpzaGludC4nKTsgXG59KTtcbiJdfQ== | ||
define('htmlbars-tests/htmlbars-util.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-tests'); | ||
@@ -261,8 +211,5 @@ test('htmlbars-tests/htmlbars-util.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-tests/htmlbars-util/array-utils.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXV0aWwuanNoaW50LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxRQUFNLENBQUMseUJBQXlCLENBQUMsQ0FBQztBQUNsQyxNQUFJLENBQUMsb0RBQW9ELEVBQUUsWUFBVztBQUNwRSxNQUFFLENBQUMsSUFBSSxFQUFFLHFEQUFxRCxDQUFDLENBQUM7R0FDakUsQ0FBQyxDQUFDIiwiZmlsZSI6Imh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXV0aWwuanNoaW50LmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlKCdKU0hpbnQgLSBodG1sYmFycy10ZXN0cycpO1xudGVzdCgnaHRtbGJhcnMtdGVzdHMvaHRtbGJhcnMtdXRpbC5qcyBzaG91bGQgcGFzcyBqc2hpbnQnLCBmdW5jdGlvbigpIHsgXG4gIG9rKHRydWUsICdodG1sYmFycy10ZXN0cy9odG1sYmFycy11dGlsLmpzIHNob3VsZCBwYXNzIGpzaGludC4nKTsgXG59KTtcbiJdfQ== | ||
define('htmlbars-tests/htmlbars-util/array-utils.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-tests/htmlbars-util'); | ||
@@ -272,8 +219,5 @@ test('htmlbars-tests/htmlbars-util/array-utils.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-tests/htmlbars-util/morph-utils.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXV0aWwvYXJyYXktdXRpbHMuanNoaW50LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxRQUFNLENBQUMsdUNBQXVDLENBQUMsQ0FBQztBQUNoRCxNQUFJLENBQUMsZ0VBQWdFLEVBQUUsWUFBVztBQUNoRixNQUFFLENBQUMsSUFBSSxFQUFFLGlFQUFpRSxDQUFDLENBQUM7R0FDN0UsQ0FBQyxDQUFDIiwiZmlsZSI6Imh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXV0aWwvYXJyYXktdXRpbHMuanNoaW50LmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlKCdKU0hpbnQgLSBodG1sYmFycy10ZXN0cy9odG1sYmFycy11dGlsJyk7XG50ZXN0KCdodG1sYmFycy10ZXN0cy9odG1sYmFycy11dGlsL2FycmF5LXV0aWxzLmpzIHNob3VsZCBwYXNzIGpzaGludCcsIGZ1bmN0aW9uKCkgeyBcbiAgb2sodHJ1ZSwgJ2h0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXV0aWwvYXJyYXktdXRpbHMuanMgc2hvdWxkIHBhc3MganNoaW50LicpOyBcbn0pO1xuIl19 | ||
define('htmlbars-tests/htmlbars-util/morph-utils.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-tests/htmlbars-util'); | ||
@@ -283,8 +227,5 @@ test('htmlbars-tests/htmlbars-util/morph-utils.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-tests/htmlbars-util/namespaces.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXV0aWwvbW9ycGgtdXRpbHMuanNoaW50LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxRQUFNLENBQUMsdUNBQXVDLENBQUMsQ0FBQztBQUNoRCxNQUFJLENBQUMsZ0VBQWdFLEVBQUUsWUFBVztBQUNoRixNQUFFLENBQUMsSUFBSSxFQUFFLGlFQUFpRSxDQUFDLENBQUM7R0FDN0UsQ0FBQyxDQUFDIiwiZmlsZSI6Imh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXV0aWwvbW9ycGgtdXRpbHMuanNoaW50LmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlKCdKU0hpbnQgLSBodG1sYmFycy10ZXN0cy9odG1sYmFycy11dGlsJyk7XG50ZXN0KCdodG1sYmFycy10ZXN0cy9odG1sYmFycy11dGlsL21vcnBoLXV0aWxzLmpzIHNob3VsZCBwYXNzIGpzaGludCcsIGZ1bmN0aW9uKCkgeyBcbiAgb2sodHJ1ZSwgJ2h0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXV0aWwvbW9ycGgtdXRpbHMuanMgc2hvdWxkIHBhc3MganNoaW50LicpOyBcbn0pO1xuIl19 | ||
define('htmlbars-tests/htmlbars-util/namespaces.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-tests/htmlbars-util'); | ||
@@ -294,8 +235,5 @@ test('htmlbars-tests/htmlbars-util/namespaces.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-tests/htmlbars-util/object-utils.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXV0aWwvbmFtZXNwYWNlcy5qc2hpbnQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU0sQ0FBQyx1Q0FBdUMsQ0FBQyxDQUFDO0FBQ2hELE1BQUksQ0FBQywrREFBK0QsRUFBRSxZQUFXO0FBQy9FLE1BQUUsQ0FBQyxJQUFJLEVBQUUsZ0VBQWdFLENBQUMsQ0FBQztHQUM1RSxDQUFDLENBQUMiLCJmaWxlIjoiaHRtbGJhcnMtdGVzdHMvaHRtbGJhcnMtdXRpbC9uYW1lc3BhY2VzLmpzaGludC5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZSgnSlNIaW50IC0gaHRtbGJhcnMtdGVzdHMvaHRtbGJhcnMtdXRpbCcpO1xudGVzdCgnaHRtbGJhcnMtdGVzdHMvaHRtbGJhcnMtdXRpbC9uYW1lc3BhY2VzLmpzIHNob3VsZCBwYXNzIGpzaGludCcsIGZ1bmN0aW9uKCkgeyBcbiAgb2sodHJ1ZSwgJ2h0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXV0aWwvbmFtZXNwYWNlcy5qcyBzaG91bGQgcGFzcyBqc2hpbnQuJyk7IFxufSk7XG4iXX0= | ||
define('htmlbars-tests/htmlbars-util/object-utils.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-tests/htmlbars-util'); | ||
@@ -305,8 +243,5 @@ test('htmlbars-tests/htmlbars-util/object-utils.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-tests/htmlbars-util/quoting.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXV0aWwvb2JqZWN0LXV0aWxzLmpzaGludC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsUUFBTSxDQUFDLHVDQUF1QyxDQUFDLENBQUM7QUFDaEQsTUFBSSxDQUFDLGlFQUFpRSxFQUFFLFlBQVc7QUFDakYsTUFBRSxDQUFDLElBQUksRUFBRSxrRUFBa0UsQ0FBQyxDQUFDO0dBQzlFLENBQUMsQ0FBQyIsImZpbGUiOiJodG1sYmFycy10ZXN0cy9odG1sYmFycy11dGlsL29iamVjdC11dGlscy5qc2hpbnQuanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUoJ0pTSGludCAtIGh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXV0aWwnKTtcbnRlc3QoJ2h0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXV0aWwvb2JqZWN0LXV0aWxzLmpzIHNob3VsZCBwYXNzIGpzaGludCcsIGZ1bmN0aW9uKCkgeyBcbiAgb2sodHJ1ZSwgJ2h0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXV0aWwvb2JqZWN0LXV0aWxzLmpzIHNob3VsZCBwYXNzIGpzaGludC4nKTsgXG59KTtcbiJdfQ== | ||
define('htmlbars-tests/htmlbars-util/quoting.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-tests/htmlbars-util'); | ||
@@ -316,8 +251,5 @@ test('htmlbars-tests/htmlbars-util/quoting.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-tests/htmlbars-util/safe-string.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXV0aWwvcXVvdGluZy5qc2hpbnQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU0sQ0FBQyx1Q0FBdUMsQ0FBQyxDQUFDO0FBQ2hELE1BQUksQ0FBQyw0REFBNEQsRUFBRSxZQUFXO0FBQzVFLE1BQUUsQ0FBQyxJQUFJLEVBQUUsNkRBQTZELENBQUMsQ0FBQztHQUN6RSxDQUFDLENBQUMiLCJmaWxlIjoiaHRtbGJhcnMtdGVzdHMvaHRtbGJhcnMtdXRpbC9xdW90aW5nLmpzaGludC5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZSgnSlNIaW50IC0gaHRtbGJhcnMtdGVzdHMvaHRtbGJhcnMtdXRpbCcpO1xudGVzdCgnaHRtbGJhcnMtdGVzdHMvaHRtbGJhcnMtdXRpbC9xdW90aW5nLmpzIHNob3VsZCBwYXNzIGpzaGludCcsIGZ1bmN0aW9uKCkgeyBcbiAgb2sodHJ1ZSwgJ2h0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXV0aWwvcXVvdGluZy5qcyBzaG91bGQgcGFzcyBqc2hpbnQuJyk7IFxufSk7XG4iXX0= | ||
define('htmlbars-tests/htmlbars-util/safe-string.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-tests/htmlbars-util'); | ||
@@ -327,8 +259,5 @@ test('htmlbars-tests/htmlbars-util/safe-string.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-tests/htmlbars-util/template-utils.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXV0aWwvc2FmZS1zdHJpbmcuanNoaW50LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxRQUFNLENBQUMsdUNBQXVDLENBQUMsQ0FBQztBQUNoRCxNQUFJLENBQUMsZ0VBQWdFLEVBQUUsWUFBVztBQUNoRixNQUFFLENBQUMsSUFBSSxFQUFFLGlFQUFpRSxDQUFDLENBQUM7R0FDN0UsQ0FBQyxDQUFDIiwiZmlsZSI6Imh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXV0aWwvc2FmZS1zdHJpbmcuanNoaW50LmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlKCdKU0hpbnQgLSBodG1sYmFycy10ZXN0cy9odG1sYmFycy11dGlsJyk7XG50ZXN0KCdodG1sYmFycy10ZXN0cy9odG1sYmFycy11dGlsL3NhZmUtc3RyaW5nLmpzIHNob3VsZCBwYXNzIGpzaGludCcsIGZ1bmN0aW9uKCkgeyBcbiAgb2sodHJ1ZSwgJ2h0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXV0aWwvc2FmZS1zdHJpbmcuanMgc2hvdWxkIHBhc3MganNoaW50LicpOyBcbn0pO1xuIl19 | ||
define('htmlbars-tests/htmlbars-util/template-utils.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-tests/htmlbars-util'); | ||
@@ -338,8 +267,5 @@ test('htmlbars-tests/htmlbars-util/template-utils.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-tests/htmlbars-util/void-tag-names.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXV0aWwvdGVtcGxhdGUtdXRpbHMuanNoaW50LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxRQUFNLENBQUMsdUNBQXVDLENBQUMsQ0FBQztBQUNoRCxNQUFJLENBQUMsbUVBQW1FLEVBQUUsWUFBVztBQUNuRixNQUFFLENBQUMsSUFBSSxFQUFFLG9FQUFvRSxDQUFDLENBQUM7R0FDaEYsQ0FBQyxDQUFDIiwiZmlsZSI6Imh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXV0aWwvdGVtcGxhdGUtdXRpbHMuanNoaW50LmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlKCdKU0hpbnQgLSBodG1sYmFycy10ZXN0cy9odG1sYmFycy11dGlsJyk7XG50ZXN0KCdodG1sYmFycy10ZXN0cy9odG1sYmFycy11dGlsL3RlbXBsYXRlLXV0aWxzLmpzIHNob3VsZCBwYXNzIGpzaGludCcsIGZ1bmN0aW9uKCkgeyBcbiAgb2sodHJ1ZSwgJ2h0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXV0aWwvdGVtcGxhdGUtdXRpbHMuanMgc2hvdWxkIHBhc3MganNoaW50LicpOyBcbn0pO1xuIl19 | ||
define('htmlbars-tests/htmlbars-util/void-tag-names.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-tests/htmlbars-util'); | ||
@@ -349,8 +275,5 @@ test('htmlbars-tests/htmlbars-util/void-tag-names.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-tests/htmlbars.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXV0aWwvdm9pZC10YWctbmFtZXMuanNoaW50LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxRQUFNLENBQUMsdUNBQXVDLENBQUMsQ0FBQztBQUNoRCxNQUFJLENBQUMsbUVBQW1FLEVBQUUsWUFBVztBQUNuRixNQUFFLENBQUMsSUFBSSxFQUFFLG9FQUFvRSxDQUFDLENBQUM7R0FDaEYsQ0FBQyxDQUFDIiwiZmlsZSI6Imh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXV0aWwvdm9pZC10YWctbmFtZXMuanNoaW50LmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlKCdKU0hpbnQgLSBodG1sYmFycy10ZXN0cy9odG1sYmFycy11dGlsJyk7XG50ZXN0KCdodG1sYmFycy10ZXN0cy9odG1sYmFycy11dGlsL3ZvaWQtdGFnLW5hbWVzLmpzIHNob3VsZCBwYXNzIGpzaGludCcsIGZ1bmN0aW9uKCkgeyBcbiAgb2sodHJ1ZSwgJ2h0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLXV0aWwvdm9pZC10YWctbmFtZXMuanMgc2hvdWxkIHBhc3MganNoaW50LicpOyBcbn0pO1xuIl19 | ||
define('htmlbars-tests/htmlbars.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-tests'); | ||
@@ -360,3 +283,3 @@ test('htmlbars-tests/htmlbars.js should pass jshint', function () { | ||
}); | ||
}); | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXRlc3RzL2h0bWxiYXJzLmpzaGludC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsUUFBTSxDQUFDLHlCQUF5QixDQUFDLENBQUM7QUFDbEMsTUFBSSxDQUFDLCtDQUErQyxFQUFFLFlBQVc7QUFDL0QsTUFBRSxDQUFDLElBQUksRUFBRSxnREFBZ0QsQ0FBQyxDQUFDO0dBQzVELENBQUMsQ0FBQyIsImZpbGUiOiJodG1sYmFycy10ZXN0cy9odG1sYmFycy5qc2hpbnQuanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUoJ0pTSGludCAtIGh0bWxiYXJzLXRlc3RzJyk7XG50ZXN0KCdodG1sYmFycy10ZXN0cy9odG1sYmFycy5qcyBzaG91bGQgcGFzcyBqc2hpbnQnLCBmdW5jdGlvbigpIHsgXG4gIG9rKHRydWUsICdodG1sYmFycy10ZXN0cy9odG1sYmFycy5qcyBzaG91bGQgcGFzcyBqc2hpbnQuJyk7IFxufSk7XG4iXX0= |
@@ -1,16 +0,11 @@ | ||
define('htmlbars-util-tests/htmlbars-util-test', ['../htmlbars-util'], function (htmlbars_util) { | ||
define("htmlbars-util-tests/htmlbars-util-test", ["exports", "../htmlbars-util"], function (exports, _htmlbarsUtil) { | ||
'use strict'; | ||
QUnit.module("htmlbars-util"); | ||
test("SafeString is exported", function () { | ||
ok(typeof htmlbars_util.SafeString === "function", "SafeString is exported"); | ||
ok(typeof _htmlbarsUtil.SafeString === "function", "SafeString is exported"); | ||
}); | ||
}); | ||
define('htmlbars-util-tests/htmlbars-util-test.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXV0aWwtdGVzdHMvaHRtbGJhcnMtdXRpbC10ZXN0LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBRUEsT0FBSyxDQUFDLE1BQU0sQ0FBQyxlQUFlLENBQUMsQ0FBQzs7QUFFOUIsTUFBSSxDQUFDLHdCQUF3QixFQUFFLFlBQVU7QUFDdkMsTUFBRSxDQUFDLHFCQUxHLFVBQVUsQUFLSSxLQUFLLFVBQVUsRUFBRSx3QkFBd0IsQ0FBQyxDQUFDO0dBQ2hFLENBQUMsQ0FBQyIsImZpbGUiOiJodG1sYmFycy11dGlsLXRlc3RzL2h0bWxiYXJzLXV0aWwtdGVzdC5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7U2FmZVN0cmluZ30gZnJvbSBcIi4uL2h0bWxiYXJzLXV0aWxcIjtcblxuUVVuaXQubW9kdWxlKCdodG1sYmFycy11dGlsJyk7XG5cbnRlc3QoXCJTYWZlU3RyaW5nIGlzIGV4cG9ydGVkXCIsIGZ1bmN0aW9uKCl7XG4gIG9rKHR5cGVvZiBTYWZlU3RyaW5nID09PSAnZnVuY3Rpb24nLCAnU2FmZVN0cmluZyBpcyBleHBvcnRlZCcpO1xufSk7XG4iXX0= | ||
define('htmlbars-util-tests/htmlbars-util-test.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-util-tests'); | ||
@@ -20,8 +15,5 @@ test('htmlbars-util-tests/htmlbars-util-test.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-util-tests/htmlbars-util.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXV0aWwtdGVzdHMvaHRtbGJhcnMtdXRpbC10ZXN0LmpzaGludC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsUUFBTSxDQUFDLDhCQUE4QixDQUFDLENBQUM7QUFDdkMsTUFBSSxDQUFDLDhEQUE4RCxFQUFFLFlBQVc7QUFDOUUsTUFBRSxDQUFDLElBQUksRUFBRSwrREFBK0QsQ0FBQyxDQUFDO0dBQzNFLENBQUMsQ0FBQyIsImZpbGUiOiJodG1sYmFycy11dGlsLXRlc3RzL2h0bWxiYXJzLXV0aWwtdGVzdC5qc2hpbnQuanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUoJ0pTSGludCAtIGh0bWxiYXJzLXV0aWwtdGVzdHMnKTtcbnRlc3QoJ2h0bWxiYXJzLXV0aWwtdGVzdHMvaHRtbGJhcnMtdXRpbC10ZXN0LmpzIHNob3VsZCBwYXNzIGpzaGludCcsIGZ1bmN0aW9uKCkgeyBcbiAgb2sodHJ1ZSwgJ2h0bWxiYXJzLXV0aWwtdGVzdHMvaHRtbGJhcnMtdXRpbC10ZXN0LmpzIHNob3VsZCBwYXNzIGpzaGludC4nKTsgXG59KTtcbiJdfQ== | ||
define('htmlbars-util-tests/htmlbars-util.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-util-tests'); | ||
@@ -31,8 +23,5 @@ test('htmlbars-util-tests/htmlbars-util.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-util-tests/htmlbars-util/array-utils.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXV0aWwtdGVzdHMvaHRtbGJhcnMtdXRpbC5qc2hpbnQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU0sQ0FBQyw4QkFBOEIsQ0FBQyxDQUFDO0FBQ3ZDLE1BQUksQ0FBQyx5REFBeUQsRUFBRSxZQUFXO0FBQ3pFLE1BQUUsQ0FBQyxJQUFJLEVBQUUsMERBQTBELENBQUMsQ0FBQztHQUN0RSxDQUFDLENBQUMiLCJmaWxlIjoiaHRtbGJhcnMtdXRpbC10ZXN0cy9odG1sYmFycy11dGlsLmpzaGludC5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZSgnSlNIaW50IC0gaHRtbGJhcnMtdXRpbC10ZXN0cycpO1xudGVzdCgnaHRtbGJhcnMtdXRpbC10ZXN0cy9odG1sYmFycy11dGlsLmpzIHNob3VsZCBwYXNzIGpzaGludCcsIGZ1bmN0aW9uKCkgeyBcbiAgb2sodHJ1ZSwgJ2h0bWxiYXJzLXV0aWwtdGVzdHMvaHRtbGJhcnMtdXRpbC5qcyBzaG91bGQgcGFzcyBqc2hpbnQuJyk7IFxufSk7XG4iXX0= | ||
define('htmlbars-util-tests/htmlbars-util/array-utils.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-util-tests/htmlbars-util'); | ||
@@ -42,8 +31,5 @@ test('htmlbars-util-tests/htmlbars-util/array-utils.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-util-tests/htmlbars-util/morph-utils.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXV0aWwtdGVzdHMvaHRtbGJhcnMtdXRpbC9hcnJheS11dGlscy5qc2hpbnQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU0sQ0FBQyw0Q0FBNEMsQ0FBQyxDQUFDO0FBQ3JELE1BQUksQ0FBQyxxRUFBcUUsRUFBRSxZQUFXO0FBQ3JGLE1BQUUsQ0FBQyxJQUFJLEVBQUUsc0VBQXNFLENBQUMsQ0FBQztHQUNsRixDQUFDLENBQUMiLCJmaWxlIjoiaHRtbGJhcnMtdXRpbC10ZXN0cy9odG1sYmFycy11dGlsL2FycmF5LXV0aWxzLmpzaGludC5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZSgnSlNIaW50IC0gaHRtbGJhcnMtdXRpbC10ZXN0cy9odG1sYmFycy11dGlsJyk7XG50ZXN0KCdodG1sYmFycy11dGlsLXRlc3RzL2h0bWxiYXJzLXV0aWwvYXJyYXktdXRpbHMuanMgc2hvdWxkIHBhc3MganNoaW50JywgZnVuY3Rpb24oKSB7IFxuICBvayh0cnVlLCAnaHRtbGJhcnMtdXRpbC10ZXN0cy9odG1sYmFycy11dGlsL2FycmF5LXV0aWxzLmpzIHNob3VsZCBwYXNzIGpzaGludC4nKTsgXG59KTtcbiJdfQ== | ||
define('htmlbars-util-tests/htmlbars-util/morph-utils.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-util-tests/htmlbars-util'); | ||
@@ -53,8 +39,5 @@ test('htmlbars-util-tests/htmlbars-util/morph-utils.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-util-tests/htmlbars-util/namespaces.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXV0aWwtdGVzdHMvaHRtbGJhcnMtdXRpbC9tb3JwaC11dGlscy5qc2hpbnQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU0sQ0FBQyw0Q0FBNEMsQ0FBQyxDQUFDO0FBQ3JELE1BQUksQ0FBQyxxRUFBcUUsRUFBRSxZQUFXO0FBQ3JGLE1BQUUsQ0FBQyxJQUFJLEVBQUUsc0VBQXNFLENBQUMsQ0FBQztHQUNsRixDQUFDLENBQUMiLCJmaWxlIjoiaHRtbGJhcnMtdXRpbC10ZXN0cy9odG1sYmFycy11dGlsL21vcnBoLXV0aWxzLmpzaGludC5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZSgnSlNIaW50IC0gaHRtbGJhcnMtdXRpbC10ZXN0cy9odG1sYmFycy11dGlsJyk7XG50ZXN0KCdodG1sYmFycy11dGlsLXRlc3RzL2h0bWxiYXJzLXV0aWwvbW9ycGgtdXRpbHMuanMgc2hvdWxkIHBhc3MganNoaW50JywgZnVuY3Rpb24oKSB7IFxuICBvayh0cnVlLCAnaHRtbGJhcnMtdXRpbC10ZXN0cy9odG1sYmFycy11dGlsL21vcnBoLXV0aWxzLmpzIHNob3VsZCBwYXNzIGpzaGludC4nKTsgXG59KTtcbiJdfQ== | ||
define('htmlbars-util-tests/htmlbars-util/namespaces.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-util-tests/htmlbars-util'); | ||
@@ -64,8 +47,5 @@ test('htmlbars-util-tests/htmlbars-util/namespaces.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-util-tests/htmlbars-util/object-utils.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXV0aWwtdGVzdHMvaHRtbGJhcnMtdXRpbC9uYW1lc3BhY2VzLmpzaGludC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsUUFBTSxDQUFDLDRDQUE0QyxDQUFDLENBQUM7QUFDckQsTUFBSSxDQUFDLG9FQUFvRSxFQUFFLFlBQVc7QUFDcEYsTUFBRSxDQUFDLElBQUksRUFBRSxxRUFBcUUsQ0FBQyxDQUFDO0dBQ2pGLENBQUMsQ0FBQyIsImZpbGUiOiJodG1sYmFycy11dGlsLXRlc3RzL2h0bWxiYXJzLXV0aWwvbmFtZXNwYWNlcy5qc2hpbnQuanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUoJ0pTSGludCAtIGh0bWxiYXJzLXV0aWwtdGVzdHMvaHRtbGJhcnMtdXRpbCcpO1xudGVzdCgnaHRtbGJhcnMtdXRpbC10ZXN0cy9odG1sYmFycy11dGlsL25hbWVzcGFjZXMuanMgc2hvdWxkIHBhc3MganNoaW50JywgZnVuY3Rpb24oKSB7IFxuICBvayh0cnVlLCAnaHRtbGJhcnMtdXRpbC10ZXN0cy9odG1sYmFycy11dGlsL25hbWVzcGFjZXMuanMgc2hvdWxkIHBhc3MganNoaW50LicpOyBcbn0pO1xuIl19 | ||
define('htmlbars-util-tests/htmlbars-util/object-utils.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-util-tests/htmlbars-util'); | ||
@@ -75,8 +55,5 @@ test('htmlbars-util-tests/htmlbars-util/object-utils.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-util-tests/htmlbars-util/quoting.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXV0aWwtdGVzdHMvaHRtbGJhcnMtdXRpbC9vYmplY3QtdXRpbHMuanNoaW50LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxRQUFNLENBQUMsNENBQTRDLENBQUMsQ0FBQztBQUNyRCxNQUFJLENBQUMsc0VBQXNFLEVBQUUsWUFBVztBQUN0RixNQUFFLENBQUMsSUFBSSxFQUFFLHVFQUF1RSxDQUFDLENBQUM7R0FDbkYsQ0FBQyxDQUFDIiwiZmlsZSI6Imh0bWxiYXJzLXV0aWwtdGVzdHMvaHRtbGJhcnMtdXRpbC9vYmplY3QtdXRpbHMuanNoaW50LmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlKCdKU0hpbnQgLSBodG1sYmFycy11dGlsLXRlc3RzL2h0bWxiYXJzLXV0aWwnKTtcbnRlc3QoJ2h0bWxiYXJzLXV0aWwtdGVzdHMvaHRtbGJhcnMtdXRpbC9vYmplY3QtdXRpbHMuanMgc2hvdWxkIHBhc3MganNoaW50JywgZnVuY3Rpb24oKSB7IFxuICBvayh0cnVlLCAnaHRtbGJhcnMtdXRpbC10ZXN0cy9odG1sYmFycy11dGlsL29iamVjdC11dGlscy5qcyBzaG91bGQgcGFzcyBqc2hpbnQuJyk7IFxufSk7XG4iXX0= | ||
define('htmlbars-util-tests/htmlbars-util/quoting.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-util-tests/htmlbars-util'); | ||
@@ -86,8 +63,5 @@ test('htmlbars-util-tests/htmlbars-util/quoting.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-util-tests/htmlbars-util/safe-string.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXV0aWwtdGVzdHMvaHRtbGJhcnMtdXRpbC9xdW90aW5nLmpzaGludC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsUUFBTSxDQUFDLDRDQUE0QyxDQUFDLENBQUM7QUFDckQsTUFBSSxDQUFDLGlFQUFpRSxFQUFFLFlBQVc7QUFDakYsTUFBRSxDQUFDLElBQUksRUFBRSxrRUFBa0UsQ0FBQyxDQUFDO0dBQzlFLENBQUMsQ0FBQyIsImZpbGUiOiJodG1sYmFycy11dGlsLXRlc3RzL2h0bWxiYXJzLXV0aWwvcXVvdGluZy5qc2hpbnQuanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUoJ0pTSGludCAtIGh0bWxiYXJzLXV0aWwtdGVzdHMvaHRtbGJhcnMtdXRpbCcpO1xudGVzdCgnaHRtbGJhcnMtdXRpbC10ZXN0cy9odG1sYmFycy11dGlsL3F1b3RpbmcuanMgc2hvdWxkIHBhc3MganNoaW50JywgZnVuY3Rpb24oKSB7IFxuICBvayh0cnVlLCAnaHRtbGJhcnMtdXRpbC10ZXN0cy9odG1sYmFycy11dGlsL3F1b3RpbmcuanMgc2hvdWxkIHBhc3MganNoaW50LicpOyBcbn0pO1xuIl19 | ||
define('htmlbars-util-tests/htmlbars-util/safe-string.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-util-tests/htmlbars-util'); | ||
@@ -97,8 +71,5 @@ test('htmlbars-util-tests/htmlbars-util/safe-string.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-util-tests/htmlbars-util/template-utils.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXV0aWwtdGVzdHMvaHRtbGJhcnMtdXRpbC9zYWZlLXN0cmluZy5qc2hpbnQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU0sQ0FBQyw0Q0FBNEMsQ0FBQyxDQUFDO0FBQ3JELE1BQUksQ0FBQyxxRUFBcUUsRUFBRSxZQUFXO0FBQ3JGLE1BQUUsQ0FBQyxJQUFJLEVBQUUsc0VBQXNFLENBQUMsQ0FBQztHQUNsRixDQUFDLENBQUMiLCJmaWxlIjoiaHRtbGJhcnMtdXRpbC10ZXN0cy9odG1sYmFycy11dGlsL3NhZmUtc3RyaW5nLmpzaGludC5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZSgnSlNIaW50IC0gaHRtbGJhcnMtdXRpbC10ZXN0cy9odG1sYmFycy11dGlsJyk7XG50ZXN0KCdodG1sYmFycy11dGlsLXRlc3RzL2h0bWxiYXJzLXV0aWwvc2FmZS1zdHJpbmcuanMgc2hvdWxkIHBhc3MganNoaW50JywgZnVuY3Rpb24oKSB7IFxuICBvayh0cnVlLCAnaHRtbGJhcnMtdXRpbC10ZXN0cy9odG1sYmFycy11dGlsL3NhZmUtc3RyaW5nLmpzIHNob3VsZCBwYXNzIGpzaGludC4nKTsgXG59KTtcbiJdfQ== | ||
define('htmlbars-util-tests/htmlbars-util/template-utils.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-util-tests/htmlbars-util'); | ||
@@ -108,8 +79,5 @@ test('htmlbars-util-tests/htmlbars-util/template-utils.js should pass jshint', function () { | ||
}); | ||
}); | ||
define('htmlbars-util-tests/htmlbars-util/void-tag-names.jshint', function () { | ||
'use strict'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXV0aWwtdGVzdHMvaHRtbGJhcnMtdXRpbC90ZW1wbGF0ZS11dGlscy5qc2hpbnQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU0sQ0FBQyw0Q0FBNEMsQ0FBQyxDQUFDO0FBQ3JELE1BQUksQ0FBQyx3RUFBd0UsRUFBRSxZQUFXO0FBQ3hGLE1BQUUsQ0FBQyxJQUFJLEVBQUUseUVBQXlFLENBQUMsQ0FBQztHQUNyRixDQUFDLENBQUMiLCJmaWxlIjoiaHRtbGJhcnMtdXRpbC10ZXN0cy9odG1sYmFycy11dGlsL3RlbXBsYXRlLXV0aWxzLmpzaGludC5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZSgnSlNIaW50IC0gaHRtbGJhcnMtdXRpbC10ZXN0cy9odG1sYmFycy11dGlsJyk7XG50ZXN0KCdodG1sYmFycy11dGlsLXRlc3RzL2h0bWxiYXJzLXV0aWwvdGVtcGxhdGUtdXRpbHMuanMgc2hvdWxkIHBhc3MganNoaW50JywgZnVuY3Rpb24oKSB7IFxuICBvayh0cnVlLCAnaHRtbGJhcnMtdXRpbC10ZXN0cy9odG1sYmFycy11dGlsL3RlbXBsYXRlLXV0aWxzLmpzIHNob3VsZCBwYXNzIGpzaGludC4nKTsgXG59KTtcbiJdfQ== | ||
define('htmlbars-util-tests/htmlbars-util/void-tag-names.jshint', ['exports'], function (exports) { | ||
module('JSHint - htmlbars-util-tests/htmlbars-util'); | ||
@@ -119,3 +87,3 @@ test('htmlbars-util-tests/htmlbars-util/void-tag-names.js should pass jshint', function () { | ||
}); | ||
}); | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0bWxiYXJzLXV0aWwtdGVzdHMvaHRtbGJhcnMtdXRpbC92b2lkLXRhZy1uYW1lcy5qc2hpbnQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU0sQ0FBQyw0Q0FBNEMsQ0FBQyxDQUFDO0FBQ3JELE1BQUksQ0FBQyx3RUFBd0UsRUFBRSxZQUFXO0FBQ3hGLE1BQUUsQ0FBQyxJQUFJLEVBQUUseUVBQXlFLENBQUMsQ0FBQztHQUNyRixDQUFDLENBQUMiLCJmaWxlIjoiaHRtbGJhcnMtdXRpbC10ZXN0cy9odG1sYmFycy11dGlsL3ZvaWQtdGFnLW5hbWVzLmpzaGludC5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZSgnSlNIaW50IC0gaHRtbGJhcnMtdXRpbC10ZXN0cy9odG1sYmFycy11dGlsJyk7XG50ZXN0KCdodG1sYmFycy11dGlsLXRlc3RzL2h0bWxiYXJzLXV0aWwvdm9pZC10YWctbmFtZXMuanMgc2hvdWxkIHBhc3MganNoaW50JywgZnVuY3Rpb24oKSB7IFxuICBvayh0cnVlLCAnaHRtbGJhcnMtdXRpbC10ZXN0cy9odG1sYmFycy11dGlsL3ZvaWQtdGFnLW5hbWVzLmpzIHNob3VsZCBwYXNzIGpzaGludC4nKTsgXG59KTtcbiJdfQ== |
var packagesConfig = { | ||
"version": "0.13.34", | ||
"revision": "c418c83b3b3ccef9f8987e6b86ddff7e363c797f", | ||
"version": "0.14.0", | ||
"revision": "66ef3be1a616690949331a25fe9e3db93900e8a7", | ||
"vendored": {}, | ||
@@ -5,0 +5,0 @@ "dependencies": { |
{ | ||
"name": "htmlbars", | ||
"version": "0.13.34", | ||
"version": "0.14.0", | ||
"description": "HTMLBars compiles Handlebars templates into document fragments rather than string buffers", | ||
@@ -11,3 +11,5 @@ "main": "dist/cjs/htmlbars.js", | ||
"test": "bin/run-tests.js", | ||
"start": "ember serve" | ||
"start": "ember serve", | ||
"sauce:connect": "ember sauce:connect", | ||
"sauce:disconnect": "ember sauce:disconnect" | ||
}, | ||
@@ -39,6 +41,6 @@ "repository": { | ||
"chalk": "~0.4.0", | ||
"ember-cli": "^0.1.13", | ||
"ember-cli": "^0.2.7", | ||
"ember-cli-release": "^0.2.2", | ||
"ember-cli-sauce": "^1.3.0", | ||
"emberjs-build": "0.0.48", | ||
"emberjs-build": "0.2.1", | ||
"git-repo-version": "^0.1.2", | ||
@@ -50,2 +52,2 @@ "handlebars": "^3.0.2", | ||
} | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# Status [![Build Status](https://travis-ci.org/tildeio/htmlbars.png?branch=master)](https://travis-ci.org/tildeio/htmlbars) [![Sauce Test Status](https://saucelabs.com/buildstatus/htmlbars-ci)](https://saucelabs.com/u/htmlbars-ci) | ||
# Status [![Build Status](https://travis-ci.org/tildeio/htmlbars.svg?branch=master)](https://travis-ci.org/tildeio/htmlbars) [![Sauce Test Status](https://saucelabs.com/buildstatus/htmlbars-ci)](https://saucelabs.com/u/htmlbars-ci) | ||
@@ -3,0 +3,0 @@ HTMLBars is a layer built on top of the Handlebars template compiler. |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
6521134
72559
2
164