Pagination script do not understand, need a detailed explanation on each line. Appreciated!
Hello, everyone, I am struggling to understand what this piece of code mean, could any one help me explain its process in detail? I read through it and think its some type of data implimentation script.
Btw, its in the core script file for
simplepagination jquery script.
Thank you all!
- $.fn.pagination = function(method) {
- // Method calling logic
- if (methods[method] && method.charAt(0) != '_') {
- return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));
- } else if (typeof method === 'object' || !method) {
- return methods.init.apply(this, arguments);
- } else {
- $.error('Method ' + method + ' does not exist on jQuery.pagination');
- }
- };