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

Commit

Permalink
Rebuild dist/min versions, bump to 1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
baumandm committed Sep 16, 2014
1 parent 761de8c commit 2ffdb87
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "angular-numeraljs",
"author": "Dave Bauman",
"version": "1.0.2",
"version": "1.0.3",
"license": "MIT",
"main": ["./dist/angular-numeraljs.js"],
"repository": {
Expand Down
13 changes: 7 additions & 6 deletions dist/angular-numeraljs.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
/**
* AngularJS filter for Numeral.js: number formatting as a filter
* @version v1.0.2 - 2014-09-16
* @version v1.0.3 - 2014-09-16
* @link https://github.com/baumandm/angular-numeraljs
* @author Dave Bauman <[email protected]>
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
/*global numeral */
'use strict';

angular.module('ngNumeraljs', [])
.filter('numeraljs', function () {
return function (input, format, language) {
if (input == null || format == null)
if (!input || !format) {
return input;
if (format === '')
return '';
if (language != null)
}

if (language) {
numeral.language(language);
}


return numeral(input).format(format);
};
});
4 changes: 2 additions & 2 deletions dist/angular-numeraljs.min.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* AngularJS filter for Numeral.js: number formatting as a filter
* @version v1.0.2 - 2014-09-16
* @version v1.0.3 - 2014-09-16
* @link https://github.com/baumandm/angular-numeraljs
* @author Dave Bauman <[email protected]>
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
"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))}});
"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}});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "angular-numeraljs",
"description": "AngularJS filter for Numeral.js: number formatting as a filter",
"version": "1.0.2",
"version": "1.0.3",
"homepage": "https://github.com/baumandm/angular-numeraljs",
"author": "Dave Bauman <[email protected]>",
"repository": {
Expand Down

0 comments on commit 2ffdb87

Please sign in to comment.