Browse Source

Up command

pull/3411/head
Artur Arseniev 5 years ago
parent
commit
4cc2f00919
  1. 6
      src/commands/view/SwitchVisibility.js

6
src/commands/view/SwitchVisibility.js

@ -16,11 +16,9 @@ export default {
toggleVis(ed, active = 1) {
if (!ed.Commands.isActive('preview')) {
const cv = ed.Canvas;
const mth = active ? 'on' : 'off';
cv.getFrames().forEach(frame => this._upFrame(frame, active));
cv.getModel()[active ? 'on' : 'off'](
'change:frames',
this._onFramesChange
);
cv.getModel()[mth]('change:frames', this._onFramesChange);
}
},

Loading…
Cancel
Save