mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
Handle updated CreateJS exports in SpriteParser
This commit is contained in:
parent
3c3db79ac1
commit
956f9dc43d
1 changed files with 3 additions and 0 deletions
|
@ -32,6 +32,9 @@ module.exports = class SpriteParser
|
|||
@width = parseInt(properties?[1] ? '0', 10)
|
||||
@height = parseInt(properties?[2] ? '0', 10)
|
||||
|
||||
# Remove webfontAvailable line, not relevant
|
||||
source = source.replace /lib\.webfontAvailable = (.|\n)+?};/, ''
|
||||
|
||||
options = {loc: false, range: true}
|
||||
ast = esprima.parse source, options
|
||||
blocks = @findBlocks ast, source
|
||||
|
|
Loading…
Reference in a new issue