Skip to content

Commit

Permalink
Merge pull request #427 from KleeGroup/develop
Browse files Browse the repository at this point in the history
Version 2.2.0
  • Loading branch information
Hartorn authored Nov 8, 2017
2 parents 5091359 + 4532f39 commit 9c40bfa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "focus-core",
"version": "2.2.0-beta4",
"version": "2.2.0",
"description": "Focus library core part.",
"main": "index.js",
"babel": {
Expand Down
7 changes: 4 additions & 3 deletions src/definition/formatter/number.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ function format(number, format) {
}

/**
* Initialize numeral locale and default format
* Initialize numeral locale and default format.
*
* @param {any} { format = DEFAULT_FORMAT, locale = 'fr' }
* @param {string} [format='0,0'] format to use
* @param {string} [locale='fr'] locale to use
*/
function init({ format = DEFAULT_FORMAT, locale = 'fr' }) {
function init(format = DEFAULT_FORMAT, locale = 'fr') {
numeral.locale(locale);
numeral.defaultFormat(format);
}
Expand Down

0 comments on commit 9c40bfa

Please sign in to comment.