summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/utils.js
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2014-08-14 12:25:35 -0500
committerkpdecker <kpdecker@gmail.com>2014-08-14 12:25:35 -0500
commitcb22ee5681b1eb1f89ee675651c018b77dd1524d (patch)
tree6e0090585ce47b53fad8a3428179a02a721eda66 /lib/handlebars/utils.js
parent9ab31e1fc6c94e5c13f9e6a10e23b1c1ed79c504 (diff)
downloadhandlebars.js-cb22ee5681b1eb1f89ee675651c018b77dd1524d.zip
handlebars.js-cb22ee5681b1eb1f89ee675651c018b77dd1524d.tar.gz
handlebars.js-cb22ee5681b1eb1f89ee675651c018b77dd1524d.tar.bz2
Increase test coverage a touch
Diffstat (limited to 'lib/handlebars/utils.js')
-rw-r--r--lib/handlebars/utils.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/handlebars/utils.js b/lib/handlebars/utils.js
index f2f1a54..087183e 100644
--- a/lib/handlebars/utils.js
+++ b/lib/handlebars/utils.js
@@ -14,7 +14,7 @@ var badChars = /[&<>"'`]/g;
var possible = /[&<>"'`]/;
function escapeChar(chr) {
- return escape[chr] || "&amp;";
+ return escape[chr];
}
export function extend(obj /* , ...source */) {
@@ -37,6 +37,7 @@ var isFunction = function(value) {
return typeof value === 'function';
};
// fallback for older versions of Chrome and Safari
+/* istanbul ignore next */
if (isFunction(/x/)) {
isFunction = function(value) {
return typeof value === 'function' && toString.call(value) === '[object Function]';
@@ -44,6 +45,7 @@ if (isFunction(/x/)) {
}
export var isFunction;
+/* istanbul ignore next */
export var isArray = Array.isArray || function(value) {
return (value && typeof value === 'object') ? toString.call(value) === '[object Array]' : false;
};