]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fix bracket placement
authorEvert Timberg <evert.timberg@gmail.com>
Sat, 15 Aug 2015 14:54:34 +0000 (10:54 -0400)
committerEvert Timberg <evert.timberg@gmail.com>
Sat, 15 Aug 2015 14:54:34 +0000 (10:54 -0400)
src/scales/scale.linear.js

index 642ea0c496956c9c31bcf55a36682064576874d0..7adf6391a52b8a56d945085684597f748c9ba991 100644 (file)
                },
                // 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