52
ClipEditor
An instance of ClipEditor is an instance of Editor which has the option to display the duration of a clip.
Objective
- Responder
- Editor
- ClipEditor
- Editor
- function ClipEditor(model, view, inspectors, panel = false, timing = false) {
- Editor.call(this, model, view, inspectors, panel);
- this._timing = timing;
- }
- ClipEditor.prototype = Object.create(Editor.prototype);
- Object.defineProperty(ClipEditor.prototype, 'constructor', { value: ClipEditor, enumerable: false, writable: true });
- ClipEditor.prototype.modelSet = function(sender) {
- Editor.prototype.modelSet.call(this, sender);
- if (this._timing)
- this._timing.widget.innerText = this._view.duration;
- };
- ClipEditor.prototype.modelValueChanged = function(sender, prop, val) {
- Editor.prototype.modelValueChanged.call(this, sender, prop, val);
- if (this._timing)
- this._timing.widget.innerText = this._view.duration;
- };
Comments