We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39faf46 commit b9cda7eCopy full SHA for b9cda7e
cocos2d/platform/CCCommon.js
@@ -166,6 +166,8 @@ cc.initDebugSetting = function () {
166
};
167
cc.logERROR = function () {
168
169
+ cc.Assert = function () {
170
+ };
171
}
172
else if (cc.COCOS2D_DEBUG == 1) {
173
cc.logINFO = cc.log;
@@ -176,24 +178,6 @@ cc.initDebugSetting = function () {
176
178
177
179
cc.logERROR = cc.log;
180
}// COCOS2D_DEBUG
-
- if (cc.COCOS2D_DEBUG) {
181
- cc.Assert = function (cond, message) {
182
- if ((typeof console.assert) == "function") {
183
- console.assert(cond, message);
184
- } else {
185
- if (!cond) {
186
- if (message) {
187
- alert(message);
188
- }
189
190
191
192
193
- cc.Assert = function () {
194
- };
195
196
197
198
199
// Enum the language type supportted now
0 commit comments