Skip to content

Commit 1e0f7dc

Browse files
jonathanluriecompwright
authored andcommitted
Declare varialles to comply to 'use strict'
Otherwise, the plugin cannot be bundled with 'use strict'
1 parent 5c85efe commit 1e0f7dc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/types/box.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ module.exports = function(Chart) {
1414

1515
// Set the data range for this annotation
1616
model.ranges = {};
17-
17+
18+
var min = 0;
19+
var max = 0;
20+
1821
if (xScale) {
1922
min = helpers.isValid(options.xMin) ? options.xMin : xScale.getPixelForValue(chartArea.left);
2023
max = helpers.isValid(options.xMax) ? options.xMax : xScale.getPixelForValue(chartArea.right);

0 commit comments

Comments
 (0)