Skip to content

Commit ac4c7e6

Browse files
committed
minor
1 parent dfc7a78 commit ac4c7e6

File tree

1 file changed

+8
-8
lines changed
  • services/static-webserver/client/source/class/osparc/desktop

1 file changed

+8
-8
lines changed

services/static-webserver/client/source/class/osparc/desktop/StudyEditor.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,14 @@ qx.Class.define("osparc.desktop.StudyEditor", {
815815
return studyDiffs;
816816
},
817817

818+
// this takes around 0.5ms
819+
didStudyChange: function() {
820+
const studyDiffs = this.__getStudyDiffs();
821+
const changed = Boolean(Object.keys(studyDiffs.delta).length);
822+
this.getStudy().setSavePending(changed);
823+
return changed;
824+
},
825+
818826
__checkStudyChanges: function() {
819827
if (this.didStudyChange()) {
820828
if (this.__updatingStudy > 0) {
@@ -826,14 +834,6 @@ qx.Class.define("osparc.desktop.StudyEditor", {
826834
}
827835
},
828836

829-
// this takes around 0.5ms
830-
didStudyChange: function() {
831-
const studyDiffs = this.__getStudyDiffs();
832-
const changed = Boolean(Object.keys(studyDiffs.delta).length);
833-
this.getStudy().setSavePending(changed);
834-
return changed;
835-
},
836-
837837
updateStudyDocument: function(data = null) {
838838
if (!osparc.data.model.Study.canIWrite(this.getStudy().getAccessRights())) {
839839
return new Promise(resolve => {

0 commit comments

Comments
 (0)