We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9addfa3 commit c699fe5Copy full SHA for c699fe5
1 file changed
lib/javascripts/pagy.js
@@ -22,6 +22,7 @@ Pagy.nav = function(id, tags, sequels, param){
22
widths.sort(function(a, b){return b-a});
23
24
var render = function(){
25
+ if (document.getElementById(id) === null){ return }
26
if (container.clientWidth === 0) { rendering() }
27
var width, i, len;
28
for (i = 0, len = widths.length; i < len; i++) {
0 commit comments