Skip to content

Commit

Permalink
Release 1.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminVanRyseghem committed Jul 2, 2015
1 parent 51f913c commit 7b080b6
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 12 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 1.3.3

- #64 multiply loses accuracy on minification. Thanks @rafde

### 1.3.2

- Fix issue with the release process
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "numbro",
"repo": "foretagsplatsen/numbro",
"version": "1.3.2",
"version": "1.3.3",
"description": "Format and manipulate numbers.",
"keywords": [
"numeral",
Expand Down
2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "numbro",
"repo": "foretagsplatsen/numbro",
"version": "1.3.2",
"version": "1.3.3",
"description": "Format and manipulate numbers.",
"keywords": [
"numeral",
Expand Down
12 changes: 7 additions & 5 deletions dist/numbro.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* numbro.js
* version : 1.3.2
* version : 1.3.3
* author : Företagsplatsen AB
* license : MIT
* http://www.foretagsplatsen.se
Expand All @@ -14,7 +14,7 @@
************************************/

var numbro,
VERSION = '1.3.2',
VERSION = '1.3.3',
// internal storage for language config files
languages = {},
currentLanguage = 'en-US',
Expand Down Expand Up @@ -929,9 +929,11 @@

multiply: function(value) {
function cback(accum, curr) {
var corrFactor = correctionFactor(accum, curr);
return (accum * corrFactor) * (curr * corrFactor) /
(corrFactor * corrFactor);
var corrFactor = correctionFactor(accum, curr),
result = accum * corrFactor;
result *= curr * corrFactor;
result /= corrFactor * corrFactor;
return result;
}
this._value = [this._value, value].reduce(cback, 1);
return this;
Expand Down
4 changes: 2 additions & 2 deletions dist/numbro.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions numbro.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* numbro.js
* version : 1.3.2
* version : 1.3.3
* author : Företagsplatsen AB
* license : MIT
* http://www.foretagsplatsen.se
Expand All @@ -14,7 +14,7 @@
************************************/

var numbro,
VERSION = '1.3.2',
VERSION = '1.3.3',
// internal storage for language config files
languages = {},
currentLanguage = 'en-US',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "numbro",
"version": "1.3.2",
"version": "1.3.3",
"description": "Format and manipulate numbers.",
"homepage": "http://numbrojs.com",
"author": {
Expand Down

0 comments on commit 7b080b6

Please sign in to comment.