From: Evert Timberg Date: Sat, 15 Aug 2015 14:54:34 +0000 (-0400) Subject: Fix bracket placement X-Git-Tag: 2.0.0-alpha4~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd62944b79e0294880dd510961bd2a85df540f9f;p=thirdparty%2FChart.js.git Fix bracket placement --- diff --git a/src/scales/scale.linear.js b/src/scales/scale.linear.js index 642ea0c49..7adf6391a 100644 --- a/src/scales/scale.linear.js +++ b/src/scales/scale.linear.js @@ -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" && rawValue !== null) ? (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