diff --git a/cocos2d/core/platform/CCInputManager.js b/cocos2d/core/platform/CCInputManager.js index 6c29c40d2a..dcf8a921ec 100644 --- a/cocos2d/core/platform/CCInputManager.js +++ b/cocos2d/core/platform/CCInputManager.js @@ -604,9 +604,6 @@ var inputManager = { } }; -js.get(cc, 'inputManager', function () { - cc.warnID(1405, 'cc.inputManager', 'cc.systemEvent'); - return inputManager; -}); +_cc.inputManager = inputManager; module.exports = inputManager; diff --git a/index.js b/index.js index 552c8181c4..1e06fdd0d6 100644 --- a/index.js +++ b/index.js @@ -37,6 +37,9 @@ cc = {}; _ccsg = {}; +// For internal usage +_cc = {}; + require('./predefine'); require('./CCDebugger');