list.pagination.js
list.pagination.js copied to clipboard
Where is `parentList` coming from?
I am trying to modify this plugin so that I can place the pagination outside of the list container. Where is parentList coming from? In other words, what is calling the init() function?
I think if I pass the list object through options I can accomplish what I need to do by assigning the passed in list object to list in this init().
return {
init: function(parentList) {
list = parentList;
pagingList = new List(list.listContainer.id, {
listClass: options.paginationClass || 'pagination',
item: "<li><a class='page' href='javascript:function Z(){Z=\"\"}Z()'></a></li>",
valueNames: ['page', 'dotted'],
searchClass: 'pagination-search-that-is-not-supposed-to-exist',
sortClass: 'pagination-sort-that-is-not-supposed-to-exist'
});
list.on('updated', refresh);
refresh();
},
name: options.name || "pagination"
};
I see now it's being called from list.js:775
plugin.init(self, List);