blob: 3f8f9a9102e02abc2f22127d91d9da77ad95c997 [file] [log] [blame]
"use strict";
define(function () {
return {
create : function () {
const o = Object.create(this);
const p = document.getElementById('pagination');
o.ds = p ? p.dataset : {};
return o;
},
page : function () {
return parseInt(this.ds["page"] || 0);
},
total : function () {
return parseInt(this.ds["total"] || 0);
},
count : function () {
return parseInt(this.ds["count"] || 0);
}
}
});