Skip to content

Commit adb6fd7

Browse files
authored
fix index.html (#21)
1 parent 1a11d30 commit adb6fd7

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

test/index.html

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -451,32 +451,32 @@
451451

452452
}
453453
);
454-
if (!z2ui5.Dirty) { sap.ui.define("z2ui5/Dirty" , ["sap/ui/core/Control"], (Control)=>{
455-
"use strict";
456-
return Control.extend("z2ui5.Dirty", {
457-
metadata: {
458-
properties: {
459-
isDirty: {
460-
type: "string"
461-
},
454+
sap.ui.define("z2ui5/Dirty", ["sap/ui/core/Control"], (Control) => {
455+
"use strict";
456+
return Control.extend("z2ui5.Dirty", {
457+
metadata: {
458+
properties: {
459+
isDirty: {
460+
type: "string"
461+
},
462+
}
463+
},
464+
setIsDirty(val) {
465+
// var dirty = !!sap.z2ui5.oResponse.PARAMS?.DIRTY;
466+
if (sap.ushell?.Container) {
467+
sap.ushell.Container.setDirtyFlag(val);
468+
} else {
469+
window.onbeforeunload = function(e) {
470+
if (val) {
471+
e.preventDefault();
472+
}
473+
}
474+
}
475+
},
476+
renderer(oRm, oControl) {}
477+
});
462478
}
463-
},
464-
setIsDirty(val) {
465-
// var dirty = !!sap.z2ui5.oResponse.PARAMS?.DIRTY;
466-
if (sap.ushell?.Container) {
467-
sap.ushell.Container.setDirtyFlag(val);
468-
} else {
469-
window.onbeforeunload = function (e) {
470-
if (val) {
471-
e.preventDefault();
472-
}
473-
}
474-
}
475-
},
476-
renderer(oRm, oControl) {}
477-
}
478-
});
479-
});
479+
);
480480
sap.ui.define("z2ui5/Timer" , [
481481
"sap/ui/core/Control"
482482
], (Control) => {

0 commit comments

Comments
 (0)