Skip to content

Commit be27f15

Browse files
committed
fixed ; in right-click commit
there were two ; behind two if statements, didn't break the code, but needed to be fixed
1 parent d562f30 commit be27f15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cocos2d/touch_dispatcher/CCMouseDispatcher.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ cc.MouseDispatcher = cc.Class.extend({
466466
switch (index) {
467467
case cc.MOUSE_DOWN:
468468
if (mouseObj.getButton() == cc.MOUSE_RIGHTBUTTON) {
469-
if (handler.getDelegate().onRightMouseDown);
469+
if (handler.getDelegate().onRightMouseDown)
470470
handler.getDelegate().onRightMouseDown(mouseObj);
471471
}
472472
else {
@@ -476,7 +476,7 @@ cc.MouseDispatcher = cc.Class.extend({
476476
break;
477477
case cc.MOUSE_UP:
478478
if (mouseObj.getButton() == cc.MOUSE_RIGHTBUTTON) {
479-
if (handler.getDelegate().onRightMouseUp);
479+
if (handler.getDelegate().onRightMouseUp)
480480
handler.getDelegate().onRightMouseUp(mouseObj);
481481
}
482482
else {

0 commit comments

Comments
 (0)