Merge pull request #1794 from cocos-creator/v1.5

merge V1.5
This commit is contained in:
Wang Nan
2017-07-10 15:39:26 +08:00
committed by GitHub
2 changed files with 7 additions and 9 deletions
+6 -8
View File
@@ -213,12 +213,14 @@ var RichText = cc.Class({
VerticalAlign: VerticalAlign
},
__preload: function () {
onEnable: function () {
this._super();
this.node.on(cc.Node.EventType.TOUCH_END, this._onTouchEnded, this);
},
if (!CC_EDITOR) {
this._registerEvents();
}
onDisable: function () {
this._super();
this.node.off(cc.Node.EventType.TOUCH_END, this._onTouchEnded, this);
},
_createSgNode: function () {
@@ -321,10 +323,6 @@ var RichText = cc.Class({
return cc.rectContainsPoint(myRect, point);
},
_registerEvents: function () {
this.node.on(cc.Node.EventType.TOUCH_END, this._onTouchEnded, this);
},
_resetState: function () {
var sgNode = this._sgNode;
if(sgNode) {
+1 -1
View File
@@ -39,7 +39,7 @@ cc.rendererCanvas = {
_clearFillStyle: "rgb(0, 0, 0)",
_dirtyRegion: null,
_allNeedDraw: true,
_enableDirtyRegion: true,
_enableDirtyRegion: false,
_debugDirtyRegion: false,
//max dirty Region count, default is 10