mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 11:54:02 +00:00
remove dom.js
This commit is contained in:
@@ -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);
|
|
||||||
};
|
|
Reference in New Issue
Block a user