| 30 | module.exports = (DeltaView = (function () { |
| 31 | DeltaView = class DeltaView extends CocoView { |
| 32 | static initClass () { |
| 33 | /* |
| 34 | Takes a CocoModel instance (model) and displays changes since the |
| 35 | last save (attributes vs _revertAttributes). |
| 36 | |
| 37 | * If headModel is included, will look for and display conflicts with the changes in model. |
| 38 | * If comparisonModel is included, will show deltas between model and comparisonModel instead |
| 39 | of changes within model itself. |
| 40 | |
| 41 | */ |
| 42 | |
| 43 | this.deltaCounter = 0 |
| 44 | this.prototype.className = 'delta-view' |
| 45 | this.prototype.template = template |
| 46 | this.prototype.maxDeltas = 50 |
| 47 | } |
| 48 | |
| 49 | constructor (options) { |
| 50 | super(options) |