MCPcopy Create free account
hub / github.com/codecombat/codecombat / initClass

Method initClass

app/views/editor/DeltaView.js:32–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30module.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)

Callers 1

DeltaView.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected