From 632121daff89a31c69b632995f8524301a6b1dca Mon Sep 17 00:00:00 2001 From: yinkaile <501251991@qq.com> Date: Fri, 2 Feb 2018 11:46:37 +0800 Subject: [PATCH] Revert "remove redefined property" This reverts commit 54de7ce4b2711cdff9873e878f865da7abd833d4. --- cocos2d/core/platform/attribute.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cocos2d/core/platform/attribute.js b/cocos2d/core/platform/attribute.js index b050a9ebfc..e3542aa139 100644 --- a/cocos2d/core/platform/attribute.js +++ b/cocos2d/core/platform/attribute.js @@ -183,6 +183,13 @@ cc.Integer = 'Integer'; */ cc.Float = 'Float'; +if (CC_EDITOR) { + JS.get(cc, 'Number', function () { + cc.warnID(3603); + return cc.Float; + }); +} + /** * Indicates that the elements in array should be type boolean. * @property {string} Boolean