Add a deprecated function

This commit is contained in:
samuele3hu 2013-09-17 12:59:38 +08:00
parent 5907e56601
commit 40ed7bc326
1 changed files with 6 additions and 0 deletions

View File

@ -28,6 +28,12 @@ function CCTextureCacheDeprecated.purgeSharedTextureCache()
return cc.TextureCache:destroyInstance()
end
rawset(CCTextureCache,"purgeSharedTextureCache",CCTextureCacheDeprecated.purgeSharedTextureCache)
function CCTextureCacheDeprecated.addUIImage(self, image, key)
deprecatedTip("CCTextureCache:addUIImage","CCTextureCache:addImage")
return self:addImage(image,key)
end
rawset(CCTextureCache,"addUIImage",CCTextureCacheDeprecated.addUIImage)
--functions of CCTextureCache will be deprecated end
--functions of CCAnimation will be deprecated begin