Skip to content

Commit 4d71e89

Browse files
author
pandamicro
committed
Fix bug
1 parent 467008a commit 4d71e89

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

extensions/spine/CCSkeletonAnimation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,6 @@ sp.SkeletonAnimation = sp.Skeleton.extend(/** @lends sp.SkeletonAnimation# */{
343343
* @param {Number} [scale] scale can be specified on the JSON or binary loader which will scale the bone positions, image sizes, and animation translations.
344344
* @returns {sp.Skeleton}
345345
*/
346-
sp.SkeletonAnimation.create = function (skeletonDataFile, atlasFile/* or atlas*/, scale) {
346+
sp.SkeletonAnimation.createWithJsonFile = sp.SkeletonAnimation.create = function (skeletonDataFile, atlasFile/* or atlas*/, scale) {
347347
return new sp.SkeletonAnimation(skeletonDataFile, atlasFile, scale);
348348
};

moduleConfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,9 @@
247247
"tilemap" : [
248248
"core", "compression",
249249

250+
"cocos2d/compression/gzip.js",
251+
"cocos2d/compression/zlib.min.js",
252+
250253
"cocos2d/tilemap/CCTGAlib.js",
251254
"cocos2d/tilemap/CCTMXTiledMap.js",
252255
"cocos2d/tilemap/CCTMXXMLParser.js",

0 commit comments

Comments
 (0)