Handle updated CreateJS exports in SpriteParser

This commit is contained in:
Nick Winter 2016-02-22 12:57:35 -08:00
parent 3c3db79ac1
commit 956f9dc43d

View file

@ -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