From 2e49493776266b4dd671dc0fc93696e969eac290 Mon Sep 17 00:00:00 2001 From: Stefan Thomas Date: Mon, 3 Dec 2012 15:34:51 -0800 Subject: [PATCH] Add Amount.is_negative(); --- src/js/amount.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/js/amount.js b/src/js/amount.js index 2426338a9..b34018cf1 100644 --- a/src/js/amount.js +++ b/src/js/amount.js @@ -785,6 +785,10 @@ Amount.prototype.parse_issuer = function (issuer) { return this; }; +Amount.prototype.is_negative = function () { + return this._is_negative; +}; + // Check BigInteger NaN // Checks currency, does not check issuer. Amount.prototype.equals = function (d) {