-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathHTMLDialogElement.js
More file actions
53 lines (44 loc) · 1014 Bytes
/
HTMLDialogElement.js
File metadata and controls
53 lines (44 loc) · 1014 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
export function open(dialog) {
return function () {
return dialog.open;
};
}
export function setOpen(value) {
return function (dialog) {
return function () {
dialog.open = value;
};
};
}
// ----------------------------------------------------------------------------
export function returnValue(dialog) {
return function () {
return dialog.returnValue;
};
}
export function setReturnValue(value) {
return function (dialog) {
return function () {
dialog.returnValue = value;
};
};
}
// ----------------------------------------------------------------------------
export function show(dialog) {
return function () {
return dialog.show();
};
}
export function showModal(dialog) {
return function () {
return dialog.showModal();
};
}
// ----------------------------------------------------------------------------
export function _close(value) {
return function (dialog) {
return function () {
dialog.close(value);
};
};
}