/* eslint-disable func-names, space-before-function-paren, object-shorthand, quotes, no-undef, prefer-template, wrap-iife, comma-dangle, no-return-assign, no-else-return, consistent-return, no-unused-vars, padded-blocks, max-len */
(function() {
  this.Pager = {
    init: function(limit, preload, disable, callback) {
      this.limit = limit != null ? limit : 0;
      this.disable = disable != null ? disable : false;
      this.callback = callback != null ? callback : $.noop;
      this.loading = $('.loading').first();
      if (preload) {
        this.offset = 0;
        this.getOld();
      } else {
        this.offset = this.limit;
      }
      return this.initLoadMore();
    },
    getOld: function() {
      this.loading.show();
      return $.ajax({
        type: "GET",
        url: $(".content_list").data('href') || location.href,
        data: "limit=" + this.limit + "&offset=" + this.offset,
        complete: (function(_this) {
          return function() {
            return _this.loading.hide();
          };
        })(this),
        success: function(data) {
          Pager.append(data.count, data.html);
          return Pager.callback();
        },
        dataType: "json"
      });
    },
    append: function(count, html) {
      $(".content_list").append(html);
      if (count > 0) {
        return this.offset += count;
      } else {
        return this.disable = true;
      }
    },
    initLoadMore: function() {
      $(document).unbind('scroll');
      return $(document).endlessScroll({
        bottomPixels: 400,
        fireDelay: 1000,
        fireOnce: true,
        ceaseFire: function() {
          return Pager.disable;
        },
        callback: (function(_this) {
          return function(i) {
            if (!_this.loading.is(':visible')) {
              _this.loading.show();
              return Pager.getOld();
            }
          };
        })(this)
      });
    }
  };

}).call(this);

@@ -1,257 +1,21 @@
-/* eslint-disable func-names, space-before-function-paren, object-shorthand, quotes, no-undef, prefer-template, wrap-iife, comma-dangle, no-return-assign, no-else-return, consistent-return, no-unused-vars, padded-blocks, max-len */%0A(function() %7B%0A  this.
+(() =%3E %7B%0A  const 
 Page
@@ -28,26 +28,16 @@
     init
-: function
 (limit, 
@@ -400,31 +400,24 @@
     %7D%0A      
-return 
 this.initLoa
@@ -442,26 +442,16 @@
   getOld
-: function
 () %7B%0A   
@@ -480,23 +480,16 @@
 ;%0A      
-return 
 $.ajax(%7B
@@ -507,13 +507,13 @@
 pe: 
-%22GET%22
+'GET'
 ,%0A  
@@ -525,17 +525,17 @@
  url: $(
-%22
+'
 .content
@@ -539,17 +539,17 @@
 ent_list
-%22
+'
 ).data('
@@ -558,16 +558,23 @@
 ef') %7C%7C 
+window.
 location
@@ -598,19 +598,17 @@
 ta: 
-%22
+%60
 limit=
-%22 + 
+$%7B
 this
@@ -617,20 +617,17 @@
 imit
- + %22
+%7D
 &offset=
 %22 + 
@@ -626,12 +626,10 @@
 set=
-%22 + 
+$%7B
 this
@@ -635,16 +635,18 @@
 s.offset
+%7D%60
 ,%0A      
@@ -662,125 +662,31 @@
 e: (
-function(_this) %7B%0A          return function() %7B%0A            return _this.loading.hide();%0A          %7D;%0A        %7D)(this
+) =%3E this.loading.hide(
 ),%0A 
@@ -705,22 +705,17 @@
 ss: 
-function
 (data)
+ =%3E
  %7B%0A 
@@ -766,31 +766,24 @@
 ;%0A          
-return 
 Pager.callba
@@ -821,14 +821,15 @@
 pe: 
-%22
+'
 json
-%22
+',
 %0A   
@@ -852,26 +852,16 @@
   append
-: function
 (count, 
@@ -876,17 +876,17 @@
       $(
-%22
+'
 .content
@@ -894,9 +894,9 @@
 list
-%22
+'
 ).ap
@@ -934,31 +934,24 @@
 ) %7B%0A        
-return 
 this.offset 
@@ -983,23 +983,16 @@
         
-return 
 this.dis
@@ -1035,26 +1035,16 @@
 LoadMore
-: function
 () %7B%0A   
@@ -1082,23 +1082,16 @@
 ;%0A      
-return 
 $(docume
@@ -1209,37 +1209,13 @@
 re: 
-function() %7B%0A          return
+() =%3E
  Pag
@@ -1224,27 +1224,25 @@
 .disable
-;%0A        %7D
+ !== true
 ,%0A      
@@ -1258,59 +1258,15 @@
 k: (
-function(_this) %7B%0A          return function(i)
+) =%3E
  %7B%0A
-  
     
@@ -1276,17 +1276,16 @@
    if (!
-_
 this.loa
@@ -1323,11 +1323,8 @@
     
-  _
 this
@@ -1356,17 +1356,8 @@
     
-  return 
 Page
@@ -1374,26 +1374,24 @@
 ;%0A          
-  
 %7D%0A          
@@ -1392,23 +1392,19 @@
     
-  %7D;%0A  
+%7D,%0A
       %7D)
 (thi
@@ -1403,48 +1403,49 @@
   %7D)
-(this)
+;
 %0A    
+%7D,%0A
   %7D
-)
 ;%0A
-    %7D%0A  %7D;%0A%0A%7D).call(this
+%0A  window.Pager = Pager;%0A%7D)(
 );%0A

convert pager.js to es6 syntax