UNPKG
yun-ui
Version:
latest (0.1.6-rc1)
1.0.1
0.1.6-rc1
0.1.6-0
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.0.10
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
Mobile UI Components Library for Vue.js by yunzhijia.
github.com/yun-ui/yun-ui
yun-ui/yun-ui
yun-ui
/
test
/
helpers
/
trigger-event.js
7 lines
(6 loc)
•
217 B
JavaScript
View Raw
1
2
3
4
5
6
7
window
.
triggerEvent
=
function
triggerEvent
(
target, event, process
) {
var
e =
document
.
createEvent
(
'HTMLEvents'
) e.
initEvent
(event,
true
,
true
)
if
(process)
process
(e) target.
dispatchEvent
(e) }