Skip to content

Commit

Permalink
Only store the original device context ratio once
Browse files Browse the repository at this point in the history
  • Loading branch information
etimberg committed Sep 18, 2015
1 parent 8d47693 commit 97cec86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/core.helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@
// Store the device pixel ratio so that we can go backwards in `destroy`.
// The devicePixelRatio changes with zoom, so there are no guarantees that it is the same
// when destroy is called
chart.originalDevicePixelRatio = window.devicePixelRatio;
chart.originalDevicePixelRatio = chart.originalDevicePixelRatio || window.devicePixelRatio;
}
},
//-- Canvas methods
Expand Down

0 comments on commit 97cec86

Please sign in to comment.