Skip to content

Commit 7af23b4

Browse files
author
Zdenko Vujasinovic
committed
cleanup
1 parent 5908448 commit 7af23b4

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

lib/coffeescript/nodes.js

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lexer.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ exports.Lexer = class Lexer
8080
i += consumed
8181

8282
return {@tokens, index: i} if opts.untilBalanced and @ends.length is 0
83-
83+
8484
@closeIndentation()
8585
@error "missing #{end.tag}", (end.origin ? end)[2] if end = @ends.pop()
8686
return @tokens if opts.rewrite is off

src/nodes.coffee

+1-2
Original file line numberDiff line numberDiff line change
@@ -884,13 +884,12 @@ exports.Call = class Call extends Base
884884
for obj in attributes.base.objects
885885
attr = obj.base
886886
attrProps = attr?.properties or []
887-
console.log attr, attrProps
888887
# Catch invalid CSX attributes: <div {a:"b", props} {props} "value" />
889888
if not (attr instanceof Obj or attr instanceof IdentifierLiteral) or (attr instanceof Obj and not attr.generated and (attrProps.length > 1 or not (attrProps[0] instanceof Splat)))
890889
obj.error """
891890
Unexpected token. Allowed CSX attributes are: id="val", src={source}, {props...} or attribute.
892891
Example: <div id="val" src={getTheSource()} {props...} checked>hellow world</div>.
893-
"""
892+
"""
894893
obj.base.csx = yes if obj.base instanceof Obj
895894
fragments.push @makeCode ' '
896895
fragments.push obj.compileToFragments(o, LEVEL_PAREN)...

0 commit comments

Comments
 (0)