views/paging: add endless pager

This commit is contained in:
rr-
2016-04-12 23:49:46 +02:00
parent 7874614be3
commit b7a67fc01c
9 changed files with 150 additions and 4 deletions

View File

@ -29,6 +29,14 @@ if (!Object.entries) {
NodeList.prototype[Symbol.iterator] = Array.prototype[Symbol.iterator];
// non standard
Node.prototype.prependChild = function(child) {
if (this.firstChild) {
this.insertBefore(child, this.firstChild);
} else {
this.appendChild(child);
}
};
Promise.prototype.always = function(onResolveOrReject) {
return this.then(
onResolveOrReject,