diff --git a/cocos2d_libs.xcodeproj/project.pbxproj.REMOVED.git-id b/cocos2d_libs.xcodeproj/project.pbxproj.REMOVED.git-id index c9f2ecce27..09c8f65300 100644 --- a/cocos2d_libs.xcodeproj/project.pbxproj.REMOVED.git-id +++ b/cocos2d_libs.xcodeproj/project.pbxproj.REMOVED.git-id @@ -1 +1 @@ -16f9fcf29ae0c1b3a14728f0a11518f50355fb18 \ No newline at end of file +08ecad70e8370c7af451fddea1c59d05e80ca696 \ No newline at end of file diff --git a/samples/samples.xcodeproj/project.pbxproj.REMOVED.git-id b/samples/samples.xcodeproj/project.pbxproj.REMOVED.git-id index c487e6bb3f..0918143626 100644 --- a/samples/samples.xcodeproj/project.pbxproj.REMOVED.git-id +++ b/samples/samples.xcodeproj/project.pbxproj.REMOVED.git-id @@ -1 +1 @@ -6e5e943a982f3ba38f0119ff2a8a4d25f9c76945 \ No newline at end of file +cfc5c1f04972a605515e3e606ec7da4be4b75c2e \ No newline at end of file diff --git a/scripting/javascript/bindings/js/jsb.js b/scripting/javascript/bindings/js/jsb.js index 524e0dc53b..7b0e39a256 100644 --- a/scripting/javascript/bindings/js/jsb.js +++ b/scripting/javascript/bindings/js/jsb.js @@ -12,3 +12,4 @@ require('jsb_opengl_constants.js'); require('jsb_opengl.js'); require('jsb_cocosbuilder.js'); require('jsb_sys.js'); +require('jsb_deprecated.js'); diff --git a/scripting/javascript/bindings/js/jsb_deprecated.js b/scripting/javascript/bindings/js/jsb_deprecated.js new file mode 100644 index 0000000000..4ae0939465 --- /dev/null +++ b/scripting/javascript/bindings/js/jsb_deprecated.js @@ -0,0 +1,23 @@ +// Deprecated functions + +var cc = cc || {}; + +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); + // }; + + +}();