Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where is parentList coming from? #16

Open
cbier opened this issue Dec 3, 2015 · 1 comment
Open

Where is parentList coming from? #16

cbier opened this issue Dec 3, 2015 · 1 comment

Comments

@cbier
Copy link

cbier commented Dec 3, 2015

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"
    };
@cbier
Copy link
Author

cbier commented Dec 3, 2015

I see now it's being called from list.js:775

plugin.init(self, List);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant