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