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 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 && { 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); 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, 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",