Added utility function for TransactionDatabase reset.

This commit is contained in:
Stefan Thomas 2011-08-18 04:57:58 +01:00
parent 27ceffaee3
commit 9fee035c58

View file

@ -54,3 +54,9 @@ TransactionDatabase.prototype.loadTransactions = function (txs) {
TransactionDatabase.prototype.getTransactions = function () {
return this.txs;
};
TransactionDatabase.prototype.clear = function () {
this.txs = [];
this.txIndex = {};
$(this).trigger('update');
};