Merge pull request #1374 from fastrde/v2.0-dev

Fix for #1373
This commit is contained in:
Evert Timberg 2015-08-14 19:50:15 -04:00
commit 7f345f051f

View File

@ -157,7 +157,7 @@
},
// Get the correct value. If the value type is object get the x or y based on whether we are horizontal or not
getRightValue: function(rawValue) {
return typeof rawValue === "object" ? (this.isHorizontal() ? rawValue.x : rawValue.y) : rawValue;
return typeof (rawValue === "object" && rawValue !== null) ? (this.isHorizontal() ? rawValue.x : rawValue.y) : rawValue;
},
getPixelForValue: function(value) {
// This must be called after fit has been run so that