From 4a95cc7e14ba74fa581ca9182e9b476e9c052ad2 Mon Sep 17 00:00:00 2001 From: Joss Crowcroft Date: Mon, 14 Jul 2014 20:44:03 +0100 Subject: [PATCH] v0.4 updates --- accounting.js | 6 +++--- accounting.min.js | 2 +- index.html | 25 ++++++++++++------------- license | 2 +- package.json | 8 ++++---- readme.md | 7 +++++-- 6 files changed, 26 insertions(+), 24 deletions(-) diff --git a/accounting.js b/accounting.js index 178fea6..998cfed 100644 --- a/accounting.js +++ b/accounting.js @@ -1,12 +1,12 @@ /*! - * accounting.js v0.3.1 - * Copyright 2011, Joss Crowcroft + * accounting.js v0.4 + * Copyright 2014 Open Exchange Rates * * Freely distributable under the MIT license. * Portions of accounting.js are inspired or borrowed from underscore.js * * Full details and documentation: - * http://josscrowcroft.github.com/accounting.js/ + * http://openexchangerates.github.io/accounting.js/ */ (function(root, undefined) { diff --git a/accounting.min.js b/accounting.min.js index 643b899..b760dfa 100644 --- a/accounting.min.js +++ b/accounting.min.js @@ -1,4 +1,4 @@ /*! - * accounting.js v0.3.1, copyright 2011 Joss Crowcroft, MIT license, http://josscrowcroft.github.com/accounting.js + * accounting.js v0.4, copyright 2014 Open Exchange Rates, MIT license, http://openexchangerates.github.io/accounting.js */ (function(p,z){function q(a){return!!(""===a||a&&a.charCodeAt&&a.substr)}function m(a){return u?u(a):"[object Array]"===v.call(a)}function r(a){return"[object Object]"===v.call(a)}function s(a,b){var d,a=a||{},b=b||{};for(d in b)b.hasOwnProperty(d)&&null==a[d]&&(a[d]=b[d]);return a}function j(a,b,d){var c=[],e,h;if(!a)return c;if(w&&a.map===w)return a.map(b,d);for(e=0,h=a.length;ea?"-":"",g=parseInt(y(Math.abs(a||0),h),10)+"",l=3a?g.neg:g.zero).replace("%s",f.symbol).replace("%v",t(Math.abs(a),n(f.precision),f.thousand,f.decimal))};c.formatColumn=function(a,b,d,i,e,h){if(!a)return[];var f=s(r(b)?b:{symbol:b,precision:d,thousand:i,decimal:e,format:h},c.settings.currency),g=x(f.format),l=g.pos.indexOf("%s")a?g.neg:g.zero).replace("%s",f.symbol).replace("%v",t(Math.abs(a),n(f.precision),f.thousand,f.decimal));if(a.length>k)k=a.length;return a});return j(a,function(a){return q(a)&&a.length accounting.js - format money / currency in JavaScript - +