st3ph / jquery.easyPaginate

jQuery plugin to paginate anything with cool effect (or not)
MIT License
45 stars 74 forks source link

Unable to access plugin.settings.currentPage in some parts of code and is stated as undefined #6

Open hariprasad26091993 opened 7 years ago

hariprasad26091993 commented 7 years ago

In the plug-in lib plugin.settings.currentPage is shown as undefiined element if i try to access it in some part of the code/lib why is this.? Ex: htmlNav += '<a href="#'+plugin.settings.hashPage+':'+i+'" title="Page '+i+'" rel="'+i+'" class="page">'+i+'</a><span title="">...'+plugin.settings.currentPage+'...</span><a href="#'+plugin.settings.hashPage+':'+plugin.settings.pages+'" title="Page '+plugin.settings.pages+'" rel="'+plugin.settings.pages+'" class="page">'+plugin.settings.pages+'</a>'