Fix: maestro html ES6 -> ES5
This commit is contained in:
@@ -1,25 +1,20 @@
|
||||
class MouseAppList {
|
||||
|
||||
constructor(pageNoArea) {
|
||||
let self = this;
|
||||
this.pageNoArea = pageNoArea;
|
||||
// console.log(parent);
|
||||
}
|
||||
|
||||
addPlayerListPages(playerCount) {
|
||||
lastPageNo = Math.ceil( (playerCount + 1) / 10 );
|
||||
|
||||
$(this.pageNoArea).empty();
|
||||
|
||||
for(let pageNo = 1; pageNo < lastPageNo + 1; pageNo++) {
|
||||
$(this.pageNoArea).append(
|
||||
"<a onClick='onClickPlayerListPage(" + pageNo + ")'> " + pageNo + " </a>"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
function MouseAppList(pageNoArea) {
|
||||
var self = this;
|
||||
this.pageNoArea = pageNoArea;
|
||||
// console.log(parent);
|
||||
}
|
||||
|
||||
MouseAppList.prototype.addPlayerListPages = function(playerCount) {
|
||||
lastPageNo = Math.ceil( (playerCount + 1) / 10 );
|
||||
|
||||
$(this.pageNoArea).empty();
|
||||
|
||||
for(var pageNo = 1; pageNo < lastPageNo + 1; pageNo++) {
|
||||
$(this.pageNoArea).append(
|
||||
"<a onClick='onClickPlayerListPage(" + pageNo + ")'> " + pageNo + " </a>"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function onClickPlayerListPage(pageNo) {
|
||||
|
||||
Reference in New Issue
Block a user