Skip to content

Commit b9cda7e

Browse files
author
linshun
committed
fixed debug setting
1 parent 39faf46 commit b9cda7e

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

cocos2d/platform/CCCommon.js

+2-18
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ cc.initDebugSetting = function () {
166166
};
167167
cc.logERROR = function () {
168168
};
169+
cc.Assert = function () {
170+
};
169171
}
170172
else if (cc.COCOS2D_DEBUG == 1) {
171173
cc.logINFO = cc.log;
@@ -176,24 +178,6 @@ cc.initDebugSetting = function () {
176178
cc.logINFO = cc.log;
177179
cc.logERROR = cc.log;
178180
}// COCOS2D_DEBUG
179-
180-
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-
} else {
193-
cc.Assert = function () {
194-
};
195-
}
196-
197181
}
198182

199183
// Enum the language type supportted now

0 commit comments

Comments
 (0)