File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -45,19 +45,19 @@ module.exports = {
45
45
return this . data . last_page ;
46
46
}
47
47
48
- var start = this . data . current_page - this . limit ,
49
- end = this . data . current_page + this . limit + 1 ,
50
- pages = [ ] ,
51
- index ;
48
+ var start = this . data . current_page - this . limit ,
49
+ end = this . data . current_page + this . limit + 1 ,
50
+ pages = [ ] ,
51
+ index ;
52
52
53
- start = start < 1 ? 1 : start ;
54
- end = end >= this . data . last_page ? this . data . last_page + 1 : end ;
53
+ start = start < 1 ? 1 : start ;
54
+ end = end >= this . data . last_page ? this . data . last_page + 1 : end ;
55
55
56
- for ( index = start ; index < end ; index ++ ) {
57
- pages . push ( index ) ;
58
- }
56
+ for ( index = start ; index < end ; index ++ ) {
57
+ pages . push ( index ) ;
58
+ }
59
59
60
- return pages ;
60
+ return pages ;
61
61
}
62
62
}
63
63
} ;
You can’t perform that action at this time.
0 commit comments