We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d562f30 commit be27f15Copy full SHA for be27f15
cocos2d/touch_dispatcher/CCMouseDispatcher.js
@@ -466,7 +466,7 @@ cc.MouseDispatcher = cc.Class.extend({
466
switch (index) {
467
case cc.MOUSE_DOWN:
468
if (mouseObj.getButton() == cc.MOUSE_RIGHTBUTTON) {
469
- if (handler.getDelegate().onRightMouseDown);
+ if (handler.getDelegate().onRightMouseDown)
470
handler.getDelegate().onRightMouseDown(mouseObj);
471
}
472
else {
@@ -476,7 +476,7 @@ cc.MouseDispatcher = cc.Class.extend({
476
break;
477
case cc.MOUSE_UP:
478
479
- if (handler.getDelegate().onRightMouseUp);
+ if (handler.getDelegate().onRightMouseUp)
480
handler.getDelegate().onRightMouseUp(mouseObj);
481
482
0 commit comments