Skip to content

Commit abf8cd7

Browse files
author
pandamicro
committed
Merge branch 'develop' of git://github.com/cocos2d/cocos2d-html5 into legend
# Conflicts: # cocos2d/core/CCScheduler.js
2 parents e666a01 + 59373d2 commit abf8cd7

File tree

6 files changed

+22
-13
lines changed

6 files changed

+22
-13
lines changed

cocos2d/actions/CCAction.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,15 +185,15 @@ cc.Action = cc.Class.extend(/** @lends cc.Action# */{
185185
},
186186

187187
/**
188-
* Currently JavaScript Bindigns (JSB), in some cases, needs to use retain and release. This is a bug in JSB, <br/>
188+
* Currently JavaScript Bindings (JSB), in some cases, needs to use retain and release. This is a bug in JSB, <br/>
189189
* and the ugly workaround is to use retain/release. So, these 2 methods were added to be compatible with JSB. <br/>
190190
* This is a hack, and should be removed once JSB fixes the retain/release bug.
191191
*/
192192
retain:function () {
193193
},
194194

195195
/**
196-
* Currently JavaScript Bindigns (JSB), in some cases, needs to use retain and release. This is a bug in JSB, <br/>
196+
* Currently JavaScript Bindings (JSB), in some cases, needs to use retain and release. This is a bug in JSB, <br/>
197197
* and the ugly workaround is to use retain/release. So, these 2 methods were added to be compatible with JSB. <br/>
198198
* This is a hack, and should be removed once JSB fixes the retain/release bug.
199199
*/
@@ -238,7 +238,7 @@ cc.Action.create = cc.action;
238238
* @extends cc.Action
239239
*/
240240
cc.FiniteTimeAction = cc.Action.extend(/** @lends cc.FiniteTimeAction# */{
241-
//! duration in seconds
241+
// duration in seconds
242242
_duration:0,
243243

244244
/**
@@ -562,7 +562,7 @@ cc.Follow = cc.Action.extend(/** @lends cc.Follow# */{
562562
*
563563
* @param {Boolean} value
564564
*/
565-
setBoudarySet:function (value) {
565+
setBoundarySet:function (value) {
566566
this._boundarySet = value;
567567
},
568568

cocos2d/core/CCScheduler.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,6 @@
2626

2727
(function () {
2828

29-
/**
30-
* Minimum priority level for user scheduling.
31-
* @constant
32-
* @type Number
33-
*/
34-
cc.PRIORITY_NON_SYSTEM = cc.PRIORITY_SYSTEM + 1;
3529

3630
var MAX_POOL_SIZE = 20;
3731

@@ -1037,11 +1031,19 @@ cc.Scheduler = cc.Class.extend(/** @lends cc.Scheduler# */{
10371031
this.unscheduleAllWithMinPriority(minPriority);
10381032
}
10391033
});
1034+
10401035
/**
10411036
* Priority level reserved for system services.
10421037
* @constant
10431038
* @type Number
10441039
*/
10451040
cc.Scheduler.PRIORITY_SYSTEM = (-2147483647 - 1);
10461041

1042+
/**
1043+
* Minimum priority level for user scheduling.
1044+
* @constant
1045+
* @type Number
1046+
*/
1047+
cc.Scheduler.PRIORITY_NON_SYSTEM = cc.Scheduler.PRIORITY_SYSTEM + 1;
1048+
10471049
})();

cocos2d/core/base-nodes/CCNode.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2512,6 +2512,7 @@ cc.Node = cc.Class.extend(/** @lends cc.Node# */{
25122512
}
25132513
}
25142514
}
2515+
return ret;
25152516
},
25162517

25172518
doEnumerate: function(name, callback){

cocos2d/particle/CCParticleSystem.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1391,8 +1391,13 @@ cc.ParticleSystem = cc.Node.extend(/** @lends cc.ParticleSystem# */{
13911391
locModeA.tangentialAccelVar = (pszTmp) ? parseFloat(pszTmp) : 0;
13921392

13931393
// rotation is dir
1394-
var locRotationIsDir = locValueForKey("rotationIsDir", dictionary).toLowerCase();
1395-
locModeA.rotationIsDir = (locRotationIsDir != null && (locRotationIsDir === "true" || locRotationIsDir === "1"));
1394+
var locRotationIsDir = locValueForKey("rotationIsDir", dictionary);
1395+
if (locRotationIsDir !== null) {
1396+
locRotationIsDir = locRotationIsDir.toString().toLowerCase();
1397+
locModeA.rotationIsDir = (locRotationIsDir === "true" || locRotationIsDir === "1");
1398+
}
1399+
else
1400+
locModeA.rotationIsDir = false;
13961401
} else if (this.emitterMode === cc.ParticleSystem.MODE_RADIUS) {
13971402
// or Mode B: radius movement
13981403
var locModeB = this.modeB;

extensions/ccui/base-classes/UIWidget.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ ccui.Widget = ccui.ProtectedNode.extend(/** @lends ccui.Widget# */{
333333
*/
334334
setEnabled: function (enabled) {
335335
this._enabled = enabled;
336+
this.setBright(enabled);
336337
},
337338

338339
/**

extensions/spine/CCSkeletonWebGLRenderCmd.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
cc.glBlendFunc(cc.ONE, cc.ONE_MINUS_SRC_COLOR);
104104
break;
105105
default:
106-
cc.glBlendFunc(locBlendFunc.src, locBlendFunc.dst);
106+
cc.glBlendFunc(premultiAlpha ? cc.ONE : cc.SRC_ALPHA, cc.ONE_MINUS_SRC_ALPHA);
107107
}
108108
} else if (regionTextureAtlas != textureAtlas && textureAtlas) {
109109
textureAtlas.drawQuads();

0 commit comments

Comments
 (0)