Skip to content

Commit

Permalink
Organizing code.
Browse files Browse the repository at this point in the history
  • Loading branch information
tcorral committed Jan 19, 2013
1 parent 6762c44 commit 6b281e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Order2()
function Order()
{
var aOrderLines = [];
this.getOrderLines = function()
Expand All @@ -12,15 +12,15 @@ function Order2()
aToConcat = null;
};
}
Order2.prototype.addOrderLine = function (oOrderLine)
Order.prototype.addOrderLine = function (oOrderLine)
{
var aOrderLines = [];
this.nOrderTotal += oOrderLine.nTotal;
aOrderLines.push(oOrderLine);
this.setOrderLines(aOrderLines);
aOrderLines = null;
};
Order2.prototype.removeOrderLine = function(oOrderLineItem)
Order.prototype.removeOrderLine = function(oOrderLineItem)
{
var aOrderLines = this.getOrderLines(),
oOrderLine;
Expand Down

0 comments on commit 6b281e5

Please sign in to comment.