diff --git a/index.html b/index.html
index b52a810..c48da24 100644
--- a/index.html
+++ b/index.html
@@ -65,7 +65,7 @@
Demo
-
+ Page 1
@@ -156,7 +156,7 @@ Synchronized pagination elements
diff --git a/js/jquery.twbsPagination.js b/js/jquery.twbsPagination.js
index 7c52bd7..eb915ea 100644
--- a/js/jquery.twbsPagination.js
+++ b/js/jquery.twbsPagination.js
@@ -41,7 +41,7 @@
}
if (this.options.onPageClick instanceof Function) {
- this.$element.bind('page', this.options.onPageClick);
+ this.$element.first().bind('page', this.options.onPageClick);
}
var tagName = (typeof this.$element.prop === 'function') ?
@@ -62,8 +62,6 @@
this.render(this.getPages(this.options.startPage));
this.setupEvents();
- this.$element.trigger('page', this.options.startPage);
-
return this;
},
@@ -212,17 +210,6 @@
});
},
- equals: function (arr1, arr2) {
- var i = 0;
- while ((i < arr1.length) || (i < arr2.length)) {
- if (arr1[i] !== arr2[i]) {
- return false;
- }
- i++;
- }
- return true;
- },
-
href: function (c) {
return this.options.href.replace(this.options.hrefVariable, c);
}
diff --git a/js/main.js b/js/main.js
index 74d8d93..243f14b 100644
--- a/js/main.js
+++ b/js/main.js
@@ -18,6 +18,5 @@ $(document).ready(function () {
$('#sync-example-page-content').text('Page ' + page);
}
});
-
});