diff --git a/cocos2d/core/platform/CCSAXParser.js b/cocos2d/core/platform/CCSAXParser.js index e3193dfac2..103d1ad082 100644 --- a/cocos2d/core/platform/CCSAXParser.js +++ b/cocos2d/core/platform/CCSAXParser.js @@ -186,9 +186,9 @@ cc.SAXParser = cc.Class.extend(/** @lends cc.SAXParser# */{ xmlhttp.onreadystatechange = function () { if (xmlhttp.readyState == 4) { if (xmlhttp.responseText) { - cc.doCallback(selector, target); that._xmlDict[fullfilePath] = xmlhttp.responseText; xmlhttp = null; + cc.doCallback(selector, target); } else { cc.doCallback(selector, target, filePath); } diff --git a/extensions/CocoStudio/Armature/CCArmature.js b/extensions/CocoStudio/Armature/CCArmature.js index 22fa464d02..58cf6e5055 100644 --- a/extensions/CocoStudio/Armature/CCArmature.js +++ b/extensions/CocoStudio/Armature/CCArmature.js @@ -86,7 +86,7 @@ ccs.Armature = ccs.NodeRGBA.extend(/** @lends ccs.Armature# */{ //animationData var animationData = armatureDataManager.getAnimationData(name); if (!animationData) { - cc.log("AnimationData not exist! "); + cc.log("AnimationData of " + name + " not exist! "); return false; } this._animation.setAnimationData(animationData);