Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 2ffdb87

Browse files
committed
Rebuild dist/min versions, bump to 1.0.3
1 parent 761de8c commit 2ffdb87

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "angular-numeraljs",
33
"author": "Dave Bauman",
4-
"version": "1.0.2",
4+
"version": "1.0.3",
55
"license": "MIT",
66
"main": ["./dist/angular-numeraljs.js"],
77
"repository": {

dist/angular-numeraljs.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
/**
22
* AngularJS filter for Numeral.js: number formatting as a filter
3-
* @version v1.0.2 - 2014-09-16
3+
* @version v1.0.3 - 2014-09-16
44
* @link https://github.com/baumandm/angular-numeraljs
55
* @author Dave Bauman <baumandm@gmail.com>
66
* @license MIT License, http://www.opensource.org/licenses/MIT
77
*/
88
/*global numeral */
99
'use strict';
10+
1011
angular.module('ngNumeraljs', [])
1112
.filter('numeraljs', function () {
1213
return function (input, format, language) {
13-
if (input == null || format == null)
14+
if (!input || !format) {
1415
return input;
15-
if (format === '')
16-
return '';
17-
if (language != null)
16+
}
17+
18+
if (language) {
1819
numeral.language(language);
20+
}
1921

20-
2122
return numeral(input).format(format);
2223
};
2324
});

dist/angular-numeraljs.min.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**
22
* AngularJS filter for Numeral.js: number formatting as a filter
3-
* @version v1.0.2 - 2014-09-16
3+
* @version v1.0.3 - 2014-09-16
44
* @link https://github.com/baumandm/angular-numeraljs
55
* @author Dave Bauman <baumandm@gmail.com>
66
* @license MIT License, http://www.opensource.org/licenses/MIT
77
*/
8-
"use strict";angular.module("ngNumeraljs",[]).filter("numeraljs",function(){return function(a,b,c){return null==a||null==b?a:""===b?"":(null!=c&&numeral.language(c),numeral(a).format(b))}});
8+
"use strict";angular.module("ngNumeraljs",[]).filter("numeraljs",function(){return function(a,b,c){return a&&b?(c&&numeral.language(c),numeral(a).format(b)):a}});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "angular-numeraljs",
33
"description": "AngularJS filter for Numeral.js: number formatting as a filter",
4-
"version": "1.0.2",
4+
"version": "1.0.3",
55
"homepage": "https://github.com/baumandm/angular-numeraljs",
66
"author": "Dave Bauman <baumandm@gmail.com>",
77
"repository": {

0 commit comments

Comments
 (0)