From 49289d7576501e9c943cc14d49ea518f736061c7 Mon Sep 17 00:00:00 2001 From: James Chen Date: Mon, 11 Nov 2013 15:46:00 +0800 Subject: [PATCH] Adding cc.TextureCache.getInstance() to jsb_deprecated.js. --- cocos/scripting/javascript/script/jsb_deprecated.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cocos/scripting/javascript/script/jsb_deprecated.js b/cocos/scripting/javascript/script/jsb_deprecated.js index 2c7a7b1ed1..cf2065152f 100644 --- a/cocos/scripting/javascript/script/jsb_deprecated.js +++ b/cocos/scripting/javascript/script/jsb_deprecated.js @@ -14,6 +14,10 @@ var cc = cc || {}; cc.AnimationCache.destroyInstance(); }; + cc.TextureCache.getInstance = function() { + return cc.Director.getInstance().getTextureCache(); + }; + // Deprecated member functions cc.Action.prototype.copy = function() { logW("cc.Action.copy", "cc.Action.clone");