List.prototype.plugins.paging = function(list, options) {
    var pagingList;
    
    var init = function() {
        options = options || {};
        pagingList = new List(list.listContainer.id, {
            listClass: options.pagingClass || 'paging',
            item: "<li><div class='page'></div></li>", // Have to contain something, can't set valueName at root element
            valueNames: ['page', 'dotted'],
            searchClass: 'nosearchclass',
            sortClass: 'nosortclass'
        });
        list.on('updated', refresh);
        refresh();
    };
    
    var refresh = function() {
        var l = list.matchingItems.length,
            index = list.i,
            page = list.page,
            pages = Math.ceil(l / page),
            currentPage = Math.ceil((index / page)),
            innerWindow = options.innerWindow || 2,
            left = options.left || options.outerWindow || 0,
            right = options.right || options.outerWindow || 0,
            right = pages - right;
            
        pagingList.clear();
        
        for (var i = 1; i <= pages; i++) {
            var className = (currentPage === i) ? "active" : "";
            
            //console.log(i, left, right, currentPage, (currentPage - innerWindow), (currentPage + innerWindow));
            
            if (is.number(i, left, right, currentPage, innerWindow)) {
                var item = pagingList.add({
                    page: "<a class='"+className+"' href='javascript:function Z(){Z=\"\"}Z()'>"+(i)+"</a>",
                    dotted: false
                })[0];
                addEvent(item.elm, i, page);
            } else if (is.dotted(i, left, right, currentPage, innerWindow, pagingList.size())) {
                pagingList.add({
                    page: "...",
                    dotted: true
                });
            }
        }
    };
    
    var is = {
        number: function(i, left, right, currentPage, innerWindow) {
           return this.left(i, left) || this.right(i, right) || this.innerWindow(i, currentPage, innerWindow);
        },
        left: function(i, left) {
            return (i <= left);
        }, 
        right: function(i, right) {
            return (i > right);
        },
        innerWindow: function(i, currentPage, innerWindow) {
            return ( i >= (currentPage - innerWindow) && i <= (currentPage + innerWindow));
        },
        dotted: function(i, left, right, currentPage, innerWindow, currentPageItem) {
            return this.dottedLeft(i, left, right, currentPage, innerWindow) 
            || (this.dottedRight(i, left, right, currentPage, innerWindow, currentPageItem));
        },
        dottedLeft: function(i, left, right, currentPage, innerWindow) {
            return ((i == (left + 1)) && !this.innerWindow(i, currentPage, innerWindow) && !this.right(i, right))
        },
        dottedRight: function(i, left, right, currentPage, innerWindow, currentPageItem) {
            if (pagingList.items[currentPageItem-1].values().dotted) {
                return false 
            } else {
                return ((i == (right)) && !this.innerWindow(i, currentPage, innerWindow) && !this.right(i, right))
            }
        }
    };
    
    var addEvent = function(elm, i, page) {
       ListJsHelpers.addEvent(elm, 'click', function() {
           list.show((i-1)*page + 1, page);
       });
    };
    
    init();
    return this;
};
@@ -71,21 +71,17 @@
 ngList;%0A
-    
 %0A
+
     var 
@@ -555,37 +555,33 @@
 fresh();%0A    %7D;%0A
-    
 %0A
+
     var refresh 
@@ -1001,29 +1001,17 @@
  right;%0A
-            
 %0A
+
         
@@ -1030,25 +1030,17 @@
 lear();%0A
-        
 %0A
+
         
@@ -1139,29 +1139,17 @@
 %22 : %22%22;%0A
-            
 %0A
+
         
@@ -1258,21 +1258,9 @@
 ));%0A
-            
 %0A
+
     
@@ -1819,37 +1819,33 @@
        %7D%0A    %7D;%0A
-    
 %0A
+
     var is = %7B%0A 
@@ -2110,17 +2110,16 @@
       %7D,
- 
 %0A       
@@ -2516,17 +2516,16 @@
 rWindow)
- 
 %0A       
@@ -3010,17 +3010,16 @@
 rn false
- 
 %0A       
@@ -3174,29 +3174,25 @@
    %7D%0A    %7D;%0A
-    
 %0A
+
     var addE
@@ -3342,20 +3342,16 @@
 %0A    %7D;%0A
-    
 %0A    ini

Remove some whitespace