Skip to content

Commit a0ceda4

Browse files
committed
Merge branch 'hotfix/1.3.1'
2 parents ffaf90b + f47c8c7 commit a0ceda4

5 files changed

+12
-12
lines changed

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "twbs-pagination",
3-
"version": "1.3",
3+
"version": "1.3.1",
44
"homepage": "https://github.com/esimakin/twbs-pagination",
55
"authors": [
66
"Eugene Simakin <[email protected]>"

jquery.twbsPagination.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -99,31 +99,31 @@
9999
},
100100

101101
buildListItems: function (pages) {
102-
var $listItems = $();
102+
var listItems = [];
103103

104104
if (this.options.first) {
105-
$listItems = $listItems.add(this.buildItem('first', 1));
105+
listItems.push(this.buildItem('first', 1));
106106
}
107107

108108
if (this.options.prev) {
109109
var prev = pages.currentPage > 1 ? pages.currentPage - 1 : this.options.loop ? this.options.totalPages : 1;
110-
$listItems = $listItems.add(this.buildItem('prev', prev));
110+
listItems.push(this.buildItem('prev', prev));
111111
}
112112

113113
for (var i = 0; i < pages.numeric.length; i++) {
114-
$listItems = $listItems.add(this.buildItem('page', pages.numeric[i]));
114+
listItems.push(this.buildItem('page', pages.numeric[i]));
115115
}
116116

117117
if (this.options.next) {
118118
var next = pages.currentPage < this.options.totalPages ? pages.currentPage + 1 : this.options.loop ? 1 : this.options.totalPages;
119-
$listItems = $listItems.add(this.buildItem('next', next));
119+
listItems.push(this.buildItem('next', next));
120120
}
121121

122122
if (this.options.last) {
123-
$listItems = $listItems.add(this.buildItem('last', this.options.totalPages));
123+
listItems.push(this.buildItem('last', this.options.totalPages));
124124
}
125125

126-
return $listItems;
126+
return listItems;
127127
},
128128

129129
buildItem: function (type, page) {

jquery.twbsPagination.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "twbs-pagination",
33
"nativeName": "jQuery Bootstrap Pagination",
4-
"version": "1.3",
4+
"version": "1.3.1",
55
"homepage": "https://github.com/esimakin/twbs-pagination",
66
"author": "Eugene Simakin <[email protected]>",
77
"description": "jQuery simple pagination plugin for bootstrap-style webpages",

twbs-pagination.jquery.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "twbs-pagination",
3-
"version": "1.3",
3+
"version": "1.3.1",
44
"title": "jQuery Bootstrap Pagination",
55
"author": {
66
"name": "Eugene Simakin",

0 commit comments

Comments
 (0)