fix wrong spelling and remove repeat code (#6030)

This commit is contained in:
JoneLau
2020-01-04 14:47:54 +08:00
committed by pandamicro
parent 4366fb53fc
commit 2f22deca33
2 changed files with 2 additions and 3 deletions
@@ -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;
+2 -2
View File
@@ -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);
}
// 快速滑动