Skip to content

Commit 0b20892

Browse files
committed
Cat was doubly defined
1 parent 2a08153 commit 0b20892

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

defaultMethods.js

-8
Original file line numberDiff line numberDiff line change
@@ -962,14 +962,6 @@ defaultMethods['*'].compile = function (data, buildState) {
962962
if (Array.isArray(data)) return `(${data.map(i => numberCoercion(i, buildState)).join(' * ')})`
963963
return `(${buildString(data, buildState)}).reduce((a,b) => (+precoerceNumber(a))*(+precoerceNumber(b)))`
964964
}
965-
// @ts-ignore Allow custom attribute
966-
defaultMethods.cat.compile = function (data, buildState) {
967-
if (typeof data === 'string') return JSON.stringify(data)
968-
if (!Array.isArray(data)) return false
969-
let res = buildState.compile`''`
970-
for (let i = 0; i < data.length; i++) res = buildState.compile`${res} + ${data[i]}`
971-
return buildState.compile`(${res})`
972-
}
973965

974966
// @ts-ignore Allow custom attribute
975967
defaultMethods['!'].compile = function (

0 commit comments

Comments
 (0)