mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
remove dom.js
This commit is contained in:
parent
057049c15a
commit
34696d3f6e
@ -1,11 +0,0 @@
|
|||||||
import Vue from 'vue';
|
|
||||||
|
|
||||||
export const once = function(el, event, fn) {
|
|
||||||
const listener = function() {
|
|
||||||
if (fn) {
|
|
||||||
fn.apply(this, arguments);
|
|
||||||
}
|
|
||||||
el.removeEventListener(event, listener);
|
|
||||||
};
|
|
||||||
el.addEventListener(event, listener);
|
|
||||||
};
|
|
Loading…
x
Reference in New Issue
Block a user