@@ -313,15 +313,18 @@ module.exports = function(Chart) {
313
313
radius : model . radius
314
314
} ;
315
315
316
- model . backgroundColor = custom . hoverBackgroundColor || helpers . valueAtIndexOrDefault ( dataset . pointHoverBackgroundColor , index , helpers . getHoverColor ( model . backgroundColor ) ) ;
317
- model . borderColor = custom . hoverBorderColor || helpers . valueAtIndexOrDefault ( dataset . pointHoverBorderColor , index , helpers . getHoverColor ( model . borderColor ) ) ;
318
- model . borderWidth = custom . hoverBorderWidth || helpers . valueAtIndexOrDefault ( dataset . pointHoverBorderWidth , index , model . borderWidth ) ;
319
- model . radius = custom . hoverRadius || helpers . valueAtIndexOrDefault ( dataset . pointHoverRadius , index , this . chart . options . elements . point . hoverRadius ) ;
320
- } ,
321
-
322
- removeHoverStyle : function ( element ) {
323
- helpers . merge ( element . _model , element . $previousStyle || { } ) ;
324
- delete element . $previousStyle ;
316
+ model . backgroundColor
317
+ = custom . hoverBackgroundColor
318
+ || helpers . valueAtIndexOrDefault ( dataset . pointHoverBackgroundColor , index , helpers . getHoverColor ( model . backgroundColor ) ) ;
319
+ model . borderColor
320
+ = custom . hoverBorderColor
321
+ || helpers . valueAtIndexOrDefault ( dataset . pointHoverBorderColor , index , helpers . getHoverColor ( model . borderColor ) ) ;
322
+ model . borderWidth
323
+ = custom . hoverBorderWidth
324
+ || helpers . valueAtIndexOrDefault ( dataset . pointHoverBorderWidth , index , model . borderWidth ) ;
325
+ model . radius
326
+ = custom . hoverRadius
327
+ || helpers . valueAtIndexOrDefault ( dataset . pointHoverRadius , index , this . chart . options . elements . point . hoverRadius ) ;
325
328
} ,
326
329
} ) ;
327
330
} ;
0 commit comments