Skip to content

Commit e7ca484

Browse files
committed
use local ariaPatchKey instead of exported
1 parent f6216f1 commit e7ca484

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

web_src/js/features/aria-base.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
export const ariaPatchKey = '_giteaAriaPatch';
2-
31
let ariaIdCounter = 0;
42

53
export function generateAriaId() {

web_src/js/features/aria-checkbox.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import $ from 'jquery';
2-
import {ariaPatchKey, generateAriaId} from './aria-base.js';
2+
import {generateAriaId} from './aria-base.js';
33

4+
const ariaPatchKey = '_giteaAriaPatchCheckbox';
45
const fomanticCheckboxFn = $.fn.checkbox;
56

67
// use our own `$.fn.checkbox` to patch Fomantic's checkbox module

web_src/js/features/aria-dropdown.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import $ from 'jquery';
2-
import {ariaPatchKey, generateAriaId} from './aria-base.js';
2+
import {generateAriaId} from './aria-base.js';
33

4+
const ariaPatchKey = '_giteaAriaPatchDropdown';
45
const fomanticDropdownFn = $.fn.dropdown;
56

67
// use our own `$().dropdown` function to patch Fomantic's dropdown module

0 commit comments

Comments
 (0)