2013-07-16 10:02:02 +08:00
|
|
|
// Deprecated functions
|
|
|
|
|
|
|
|
var cc = cc || {};
|
|
|
|
|
2013-07-16 10:14:52 +08:00
|
|
|
(function() {
|
2013-07-16 10:02:02 +08:00
|
|
|
|
|
|
|
var logW = function(old_name, new_name) {
|
|
|
|
cc.log("\n********** \n"+old_name +" was deprecated, please use "+ new_name +" instead.\n**********");
|
|
|
|
};
|
|
|
|
|
2013-07-16 14:43:20 +08:00
|
|
|
// Deprecated static functions
|
2013-07-16 10:02:02 +08:00
|
|
|
cc.AnimationCache.purgeSharedAnimationCache = function() {
|
|
|
|
logW("cc.AnimationCache.purgeSharedAnimationCache", "cc.AnimationCache.destroyInstance");
|
|
|
|
cc.AnimationCache.destroyInstance();
|
|
|
|
};
|
|
|
|
|
2013-07-16 14:43:20 +08:00
|
|
|
// Deprecated member functions
|
|
|
|
cc.Action.prototype.copy = function() {
|
|
|
|
logW("cc.Action.copy", "cc.Action.clone");
|
|
|
|
return cc.Action.prototype.clone.apply(this, arguments);
|
|
|
|
};
|
2013-07-16 10:02:02 +08:00
|
|
|
|
2013-07-16 14:43:20 +08:00
|
|
|
cc.Animation.prototype.copy = function() {
|
|
|
|
logW("cc.Animation.copy", "cc.Animation.clone");
|
|
|
|
return cc.Animation.prototype.clone.apply(this, arguments);
|
|
|
|
};
|
2013-07-16 10:02:02 +08:00
|
|
|
|
2013-07-16 10:14:52 +08:00
|
|
|
})();
|