]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Rename onHover to events to match the line chart
authorEvert Timberg <evert.timberg@gmail.com>
Sat, 23 May 2015 19:15:04 +0000 (15:15 -0400)
committerEvert Timberg <evert.timberg@gmail.com>
Sat, 23 May 2015 19:15:04 +0000 (15:15 -0400)
src/Chart.Scatter.js

index d7318ad9c0cb18f370708ef4d5f85eaf05915bb5..5ac3d120e48317874364e6f2bbdb7337f5b9b278 100644 (file)
             });
 
             // Events
-            helpers.bindEvents(this, this.options.tooltipEvents, this.onHover);
+            helpers.bindEvents(this, this.options.tooltipEvents, this.events);
 
             // Build Scale
             this.buildScale();
         previousPoint: function(collection, index) {
             return collection[index + 1] || collection[index];
         },
-        onHover: function(e) {
+        events: function(e) {
             // If exiting chart
             if (e.type == 'mouseout') {
                 return this;