Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
#19 fix send multiple / single object in to steps.
Browse files Browse the repository at this point in the history
  • Loading branch information
vmariano committed Oct 31, 2014
1 parent 6b6cbee commit 802bfd7
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions lib/bill-diff/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,15 @@ DiffView.prototype.showDifference = function (diff) {
/**
* Change bill content for the moment only when click in some step.
*
* @param {Object} steps containt the current step and the previus.
* @param {StepSchema} currentStep The Step Schema to show up in the view.
* @param {StepSchema} previousStep Previous Step for calculate difference.
*/
DiffView.prototype.changeBillContent = function (steps) {
//TODO: the only purpose of have 2 steps in the same view, is to be compare them.
//Maybe this should be resolved outside of this view.
var diff = this.calculateTextDiff(steps.step, steps.previousStep);
DiffView.prototype.changeBillContent = function (currentStep, previousStep) {
//TODO: the only purpose of have 2 steps in the same view, is to be compare them.
//Maybe this should be resolved outside of this view.

//Here should append the current text, and anchor the differences, calculated.
var diff = this.calculateTextDiff(currentStep, previousStep);
this.showDifference(diff);
};

Expand Down

0 comments on commit 802bfd7

Please sign in to comment.