Use prevCallbacks[i].highlightCallback.apply(this, arguments) instead so this works...
authorTomster <tomster@emberjs.com>
Wed, 24 Jun 2015 18:51:20 +0000 (20:51 +0200)
committerTomster <tomster@emberjs.com>
Wed, 24 Jun 2015 18:51:20 +0000 (20:51 +0200)
src/extras/synchronizer.js

index 16c042e..78efbcb 100644 (file)
@@ -162,7 +162,7 @@ function attachZoomHandlers(gs, syncOpts, prevCallbacks) {
         for (var j = 0; j < gs.length; j++) {
           if (gs[j] == me) {
             if (prevCallbacks[j] && prevCallbacks[j].drawCallback) {
-              prevCallbacks[j].drawCallback(me, initial);
+              prevCallbacks[j].drawCallback.apply(this, arguments);
             }
             continue;
           }
@@ -187,7 +187,7 @@ function attachSelectionHandlers(gs, prevCallbacks) {
         for (var i = 0; i < gs.length; i++) {
           if (me == gs[i]) {
             if (prevCallbacks[i] && prevCallbacks[i].highlightCallback) {
-              prevCallbacks[i].highlightCallback(event, x, points, row, seriesName);
+              prevCallbacks[i].highlightCallback.apply(this, arguments);
             }
             continue;
           }
@@ -205,7 +205,7 @@ function attachSelectionHandlers(gs, prevCallbacks) {
         for (var i = 0; i < gs.length; i++) {
           if (me == gs[i]) {
             if (prevCallbacks[i] && prevCallbacks[i].unhighlightCallback) {
-              prevCallbacks[i].unhighlightCallback(event);
+              prevCallbacks[i].unhighlightCallback.apply(this, arguments);
             }
             continue;
           }