mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 00:22:43 +08:00
fix wrong spelling and remove repeat code (#6030)
This commit is contained in:
@@ -21,7 +21,6 @@ export class WebGLGFXTextureView extends GFXTextureView {
|
||||
this._texture = info.texture;
|
||||
this._type = info.type;
|
||||
this._format = info.format;
|
||||
this._format = info.format;
|
||||
|
||||
if (info.baseLevel !== undefined) {
|
||||
this._baseLevel = info.baseLevel;
|
||||
|
||||
@@ -87,7 +87,7 @@ ccenum(Direction);
|
||||
* @zh 滚动视图事件类型
|
||||
*/
|
||||
enum EventType {
|
||||
PAGE_TURING = 'page-turning',
|
||||
PAGE_TURNING = 'page-turning',
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -599,7 +599,7 @@ export class PageViewComponent extends ScrollViewComponent {
|
||||
if (this._lastPageIdx === this._curPageIdx) { return; }
|
||||
this._lastPageIdx = this._curPageIdx;
|
||||
ComponentEventHandler.emitEvents(this.pageEvents, this);
|
||||
this.node.emit(EventType.PAGE_TURING, this);
|
||||
this.node.emit(EventType.PAGE_TURNING, this);
|
||||
}
|
||||
|
||||
// 快速滑动
|
||||
|
||||
Reference in New Issue
Block a user