fix set sent

This commit is contained in:
Matias Alejo Garcia 2014-04-20 21:23:53 -03:00
commit 17431e29c5
2 changed files with 11 additions and 4 deletions

View file

@ -29,6 +29,11 @@ TxProposal.prototype.toObj = function() {
return o;
};
TxProposal.prototype.setSent = function() {
this.sentTs = Date.now();;
};
TxProposal.fromObj = function(o) {
var t = new TxProposal(o);
var b = new Builder.fromObj(o.builderObj);
@ -36,10 +41,6 @@ TxProposal.fromObj = function(o) {
return t;
};
TxProposal.setSent = function() {
this.sentTs = Date.now();;
};
TxProposal.getSentTs = function() {
return this.sentTs;
};