mirror of
https://github.com/smallmain/cocos-enhance-kit.git
synced 2025-12-08 21:28:44 +00:00
[adapters] 增加小游戏适配部分源码
This commit is contained in:
14
adapters/platforms/bytedance/wrapper/builtin/Event.js
Normal file
14
adapters/platforms/bytedance/wrapper/builtin/Event.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import {noop} from './util'
|
||||
|
||||
export default class Event {
|
||||
cancelBubble = false
|
||||
cancelable = false
|
||||
target = null
|
||||
timestampe = Date.now()
|
||||
preventDefault = noop
|
||||
stopPropagation = noop
|
||||
|
||||
constructor(type) {
|
||||
this.type = type
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user