in scripts/control.ts [22:46]
private _initialize(): void {
this._inputs = VSS.getConfiguration().witInputs;
this._fieldName = this._inputs["FieldName"];
WitService.WorkItemFormService.getService().then(
(service) => {
Q.spread(
[service.getFieldValue(this._fieldName)],
(currentValue: number) => {
// dependent on view, model, and inputParser refactoring
this._model = new Model(Number(currentValue));
this._view = new View(this._model, (val) => {
this._updateInternal(val);
}, () => {
this._model.incrementValue();
this._updateInternal(this._model.getCurrentValue());
}, () => {
this._model.decrementValue();
this._updateInternal(this._model.getCurrentValue());
});
}, this._handleError
).then(null, this._handleError);
},
this._handleError);
}