axmol/scripting/javascript/bindings/js/jsb_deprecated.js

24 lines
774 B
JavaScript
Raw Normal View History

// Deprecated functions
var cc = cc || {};
2013-07-16 10:14:52 +08:00
(function() {
var logW = function(old_name, new_name) {
cc.log("\n********** \n"+old_name +" was deprecated, please use "+ new_name +" instead.\n**********");
};
cc.AnimationCache.purgeSharedAnimationCache = function() {
logW("cc.AnimationCache.purgeSharedAnimationCache", "cc.AnimationCache.destroyInstance");
cc.AnimationCache.destroyInstance();
};
// Example of deprecating a member function
// cc.TiledGrid3DAction.prototype.originalTile = function() {
// logW("cc.TiledGrid3DAction.prototype.originalTile", "cc.TiledGrid3DAction.prototype.getOriginalTile");
// return cc.TiledGrid3DAction.prototype.getOriginalTile.apply(this, arguments);
// };
2013-07-16 10:14:52 +08:00
})();