kberg requests that nonInteractiveModel be private
authorDan Vanderkam <danvk@google.com>
Tue, 12 Jul 2011 21:27:39 +0000 (17:27 -0400)
committerDan Vanderkam <danvk@google.com>
Tue, 12 Jul 2011 21:27:39 +0000 (17:27 -0400)
auto_tests/tests/interaction_model.js
dygraph-interaction-model.js
tests/interaction.html

index 5d3c435..a363f55 100644 (file)
@@ -150,7 +150,7 @@ InteractionModelTestCase.prototype.testClickCallbackIsCalledWithNonInteractiveMo
     width: 100,
     height : 100,
     clickCallback : clickCallback,
-    interactionModel : {}
+    interactionModel : Dygraph.Interaction.nonInteractiveModel_
   };
 
   var graph = document.getElementById("graph");
index 645c258..32809f5 100644 (file)
@@ -393,7 +393,7 @@ Dygraph.endPan = Dygraph.Interaction.endPan;
 Dygraph.movePan = Dygraph.Interaction.movePan;
 Dygraph.startPan = Dygraph.Interaction.startPan;
 
-Dygraph.Interaction.nonInteractiveModel = {
+Dygraph.Interaction.nonInteractiveModel_ = {
   mousedown: function(event, g, context) {
     context.initializeMouseDown(event, g, context);
   },
index 58f3dac..3259268 100644 (file)
            NoisyData,
            {
              errorBars : true,
-             interactionModel: Dygraph.Interaction.nonInteractiveModel,
-             clickCallback: function(e, x, pts) {
-               s.innerHTML += "<b>Click</b> " + pts[0].name + ": " + pts[0].x + "<br/>";
-             },
-             pointClickCallback: function(e, p) {
-               s.innerHTML += "<b>Point Click</b> " + p.name + ": " + p.x + "<br/>";
-             },
+             interactionModel: {}
            });
       var g3 = new Dygraph(document.getElementById("div_g3"),
            NoisyData, { errorBars : true, interactionModel : {