mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
views/paging: add endless pager
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user