jancbeck/Barista-Beautifier.sugar

jsbeautify removes $object

Opened this issue · 3 comments

Objects defined in the global scope this way: window.$obj = {… will be removed when the js is beautified. -> window. = {…

I have the same issue - If I have inline PHP
ex:

<tbody><?php foreach($division as $item):?></tbody>

the resulted will be

<tbody><?php foreach( as ):?></tbody>

I saw this also on a page that had dollar amounts defined as $ instead of '& # 3 6 ;' all the amounts were removed. (i.e Ticket is $12, the '$12' vanished.)

Issues fixed in a57ca03 thanks to the contribution of @onecrayon