[BUG] Undefined Variables

This issue has been tracked since 2021-10-13.

I don't know how to fix these:

grafik

For copy&paste search in the code I've copied the relevant source parts here:

w2compat.js

                // do not show selected items
                if (obj.type === 'enum' && $.inArray(item.id, **ids**) !== -1) item.hidden = true

w2grid.js

        function targetIntersection(cursorX, offsets, lastWidth){
            if (cursorX <= offsets[0]) {
                return 0
            } else if (cursorX >= offsets[offsets.length - 1] + lastWidth) {
                return offsets.length
            } else {
                for (let i = 0, l = offsets.length; i < l; i++) {
                    let thisOffset = offsets[ i ]
                    let nextOffset = offsets[ i + 1 ] || offsets[ i ] + lastWidth
                    let midpoint   = (nextOffset - offsets[ i ]) / 2 + offsets[ i ]

                    if (cursorX > thisOffset && cursorX <= midpoint) {
                        return i
                    } else if (cursorX > midpoint && cursorX <= nextOffset) {
                        return i + 1
                    }
                }
                return **intersection**
            }
        }

and

    getOperators(type, opers) {
        let operators = this.operators[this.operatorsMap[type]] || []
        if (opers != null && Array.isArray(opers)) {
            operators = **fieldOpers**
        }
        let html = ''
More Details About Repo
Owner Name vitmalina
Repo Name w2ui
Full Name vitmalina/w2ui
Language JavaScript
Created Date 2011-04-12
Updated Date 2022-06-22
Star Count 2000
Watcher Count 179
Fork Count 665
Issue Count 255

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date