From 46fc08c8fe58df5c7cf76c7ff2b2e4245c7e4eb8 Mon Sep 17 00:00:00 2001 From: zilongshanren Date: Wed, 3 Aug 2016 17:29:56 +0800 Subject: [PATCH 1/5] fix button color transition interactive=false --- cocos2d/core/components/CCButton.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/cocos2d/core/components/CCButton.js b/cocos2d/core/components/CCButton.js index dd7b2d5680..b9a69d0d17 100644 --- a/cocos2d/core/components/CCButton.js +++ b/cocos2d/core/components/CCButton.js @@ -103,6 +103,12 @@ var Button = cc.Class({ ctor: function () { this._resetState(); + + this._fromColor = null; + this._toColor = null; + this._time = 0; + this._transitionFinished = true; + this._sprite = null; if(CC_EDITOR) { @@ -114,10 +120,6 @@ var Button = cc.Class({ this._pressed = false; this._hovered = false; - this._fromColor = null; - this._toColor = null; - this._time = 0; - this._transitionFinished = true; }, editor: CC_EDITOR && { From ce3382ed3b5749547fa124bf1a14788f04c77554 Mon Sep 17 00:00:00 2001 From: zilongshanren Date: Wed, 3 Aug 2016 17:42:14 +0800 Subject: [PATCH 2/5] add async decencies to package.json --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 8071bae5fc..e506a21978 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "gulp-rename": "1.2.2", "gulp-shell": "0.4.1", "gulp-size": "2.1.0", + "async": "1.5.2", "gulp-sourcemaps": "1.5.2", "gulp-uglify": "1.5.3", "gulp-util": "3.0.6", From 2e671e1d803ae2911dc5c14b1a9cd5530b2107d2 Mon Sep 17 00:00:00 2001 From: knoxHuang <821686174@qq.com> Date: Thu, 4 Aug 2016 16:17:38 +0800 Subject: [PATCH 3/5] Uniform SocketIO emit interfaces parameter for fireball/issues/3872 --- jsb/jsb-etc.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/jsb/jsb-etc.js b/jsb/jsb-etc.js index 13036ea748..853258faa5 100644 --- a/jsb/jsb-etc.js +++ b/jsb/jsb-etc.js @@ -198,6 +198,14 @@ if (window.SocketIO) { window.io = window.SocketIO; } +SocketIO.prototype._jsbEmit = SocketIO.prototype.emit; +SocketIO.prototype.emit = function (uri, delegate) { + if (typeof delegate === 'object') { + delegate = JSON.stringify(delegate); + } + this._jsbEmit(uri, delegate); +}; + // ccsg window._ccsg = { Node: cc.Node, From 42ffe1b521bc2569f1a1514e9d5e8e46d913d8fe Mon Sep 17 00:00:00 2001 From: zilongshanren Date: Thu, 4 Aug 2016 17:46:06 +0800 Subject: [PATCH 4/5] fix scrollbar opacity issue --- cocos2d/core/components/CCScrollBar.js | 2 +- cocos2d/core/components/CCScrollView.js | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/cocos2d/core/components/CCScrollBar.js b/cocos2d/core/components/CCScrollBar.js index 4f5da41e32..ff46963aeb 100644 --- a/cocos2d/core/components/CCScrollBar.js +++ b/cocos2d/core/components/CCScrollBar.js @@ -333,7 +333,7 @@ var Scrollbar = cc.Class({ }, show: function() { - this._autoHideRemainingTime = 0; + this._autoHideRemainingTime = this.autoHideTime; this._setOpacity(this._opacity); }, diff --git a/cocos2d/core/components/CCScrollView.js b/cocos2d/core/components/CCScrollView.js index 4d1602b29d..e389942140 100644 --- a/cocos2d/core/components/CCScrollView.js +++ b/cocos2d/core/components/CCScrollView.js @@ -1328,11 +1328,25 @@ var ScrollView = cc.Class({ } }, - onDisable: function() { + _showScrollbar: function () { + if (this.horizontalScrollBar) { + this.horizontalScrollBar.show(); + } + + if (this.verticalScrollBar) { + this.verticalScrollBar.show(); + } + }, + + onDisable: function () { this._hideScrollbar(); this.stopAutoScroll(); }, + onEnable: function () { + this._showScrollbar(); + }, + update: function(dt) { if (this._autoScrolling) { this._processAutoScrolling(dt); From 7d4f8400708396c4424906e77d9ad71a2712aed2 Mon Sep 17 00:00:00 2001 From: Jare Guo Date: Fri, 5 Aug 2016 10:16:09 +0800 Subject: [PATCH 5/5] Integrate lgtm.co --- MAINTAINERS | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 MAINTAINERS diff --git a/MAINTAINERS b/MAINTAINERS new file mode 100644 index 0000000000..558eaca9cf --- /dev/null +++ b/MAINTAINERS @@ -0,0 +1,10 @@ + +2youyou2 +dabingnn +jareguo +knoxHuang +nantas +natural-law +pandamicro +VisualSJ +zilongshanren