Merge commit v1.10-release into v2.0-release

# Conflicts:
#	cocos2d/core/CCDebug.js
#	cocos2d/deprecated.js
This commit is contained in:
Jare Guo
2018-08-23 17:40:07 +08:00
3 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -266,7 +266,7 @@ cc.assertID = function (cond) {
* !#zh 调试模式
* @enum debug.DebugMode
* @memberof cc
*/
*/
var DebugMode = cc.Enum({
/**
* !#en The debug mode none.
+3 -2
View File
@@ -267,8 +267,9 @@ function refreshScene () {
// check animation editor
if (CC_EDITOR && !Editor.isBuilder) {
var AnimUtils = Editor.require('scene://utils/animation');
if (AnimUtils) {
var nowPreviewing = !!AnimUtils.Cache.animation;
var EditMode = Editor.require('scene://edit-mode');
if (AnimUtils && EditMode) {
var nowPreviewing = (EditMode.curMode().name === 'animation' && !!AnimUtils.Cache.animation);
if (nowPreviewing !== animationState.previewing) {
animationState.previewing = nowPreviewing;
if (nowPreviewing) {
+3 -3
View File
@@ -138,7 +138,7 @@ if (CC_DEBUG) {
cc.warn('Sorry, %s.%s is deprecated. Please use %s instead', ownerName, propName, obj[propName]);
return originFunc.apply(this, arguments);
}
ownerCtor[propName] = warn;
})();
}
@@ -438,7 +438,7 @@ if (CC_DEBUG) {
// Vec2
pointEqualToPoint: 'cc.Vec2 equals',
// Size
sizeEqualToSize: 'cc.Size equals',
@@ -580,7 +580,7 @@ if (CC_DEBUG) {
cc.errorID(1407);
return js.Pool;
});
// cc.isChildClassOf
js.get(cc, 'isChildClassOf', function () {
cc.errorID(1400, 'cc.isChildClassOf', 'cc.js.isChildClassOf');