]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Remove Tooltip opacity from core-controller
authorTanner Linsley <tannerlinsley@gmail.com>
Sun, 1 Nov 2015 00:16:35 +0000 (18:16 -0600)
committerTanner Linsley <tannerlinsley@gmail.com>
Sun, 1 Nov 2015 00:16:35 +0000 (18:16 -0600)
src/core/core.controller.js

index df0ca25ac16533bcb38bab0218d5821600b51ab5..da478378c42cdfab7cae36e8c496e60744894b33 100644 (file)
 
                                // The usual updates
                                this.tooltip.initialize();
-
-                               // Active
-                               if (this.tooltipActive.length) {
-                                       this.tooltip._model.opacity = 1;
-
-                                       helpers.extend(this.tooltip, {
-                                               _active: this.tooltipActive,
-                                       });
-
-                               } else {
-                                       // Inactive
-                                       this.tooltip._model.opacity = 0;
-                               }
-                               this.tooltip.update();
+                               this.tooltip._active = this.tooltipActive;
                        }
 
                        // Hover animations