Last active
January 10, 2023 16:59
-
-
Save jywarren/0b2814639eefe71fb0ed6d05ae54adf6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function Paginate() { | |
let blabla = 3; | |
function setup() { | |
} | |
function clear() { | |
} | |
return { | |
setup: setup, | |
clear: clear | |
} | |
} | |
// archive.js | |
import Paginate from "paginate.js" | |
// when loading a collection: | |
// if (paginate is defined) paginate.clear() // clear previous collection pagination listeners | |
let paginate = Paginate.setup() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment