Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Lobos/react-ui
/ bindClickAway
Method
bindClickAway
src/mixins/ClickAway.js:16–20 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
14
}
15
16
bindClickAway () {
17
const
fn = this.getClickAwayEvent();
18
Events.on(document,
'click'
, fn);
19
Events.on(document,
'touchstart'
, fn);
20
}
21
22
unbindClickAway () {
23
const
fn = this.getClickAwayEvent();
Callers
4
showTip
Method · 0.80
showOptions
Function · 0.80
open
Function · 0.80
open
Method · 0.80
Calls
1
getClickAwayEvent
Method · 0.80
Tested by
no test coverage detected