Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

missing var declaration #221

Merged
merged 1 commit into from

2 participants

@diwu1989

No description provided.

@dchester dchester merged commit 3862720 into shutterstock:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 27, 2013
  1. missing var declaration

    Di Wu authored
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/js/Rickshaw.Fixtures.Number.js
View
10 src/js/Rickshaw.Fixtures.Number.js
@@ -1,10 +1,10 @@
Rickshaw.namespace('Rickshaw.Fixtures.Number');
Rickshaw.Fixtures.Number.formatKMBT = function(y) {
- abs_y = Math.abs(y);
- if (abs_y >= 1000000000000) { return y / 1000000000000 + "T" }
- else if (abs_y >= 1000000000) { return y / 1000000000 + "B" }
- else if (abs_y >= 1000000) { return y / 1000000 + "M" }
+ var abs_y = Math.abs(y);
+ if (abs_y >= 1000000000000) { return y / 1000000000000 + "T" }
+ else if (abs_y >= 1000000000) { return y / 1000000000 + "B" }
+ else if (abs_y >= 1000000) { return y / 1000000 + "M" }
else if (abs_y >= 1000) { return y / 1000 + "K" }
else if (abs_y < 1 && y > 0) { return y.toFixed(2) }
else if (abs_y === 0) { return '' }
@@ -12,7 +12,7 @@ Rickshaw.Fixtures.Number.formatKMBT = function(y) {
};
Rickshaw.Fixtures.Number.formatBase1024KMGTP = function(y) {
- abs_y = Math.abs(y);
+ var abs_y = Math.abs(y);
if (abs_y >= 1125899906842624) { return y / 1125899906842624 + "P" }
else if (abs_y >= 1099511627776){ return y / 1099511627776 + "T" }
else if (abs_y >= 1073741824) { return y / 1073741824 + "G" }
Something went wrong with that request. Please try again.