Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update
  • Loading branch information
Eugene Simakin committed Jul 16, 2014
1 parent 3ba22d2 commit 3bf652a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 17 deletions.
4 changes: 2 additions & 2 deletions index.html
Expand Up @@ -65,7 +65,7 @@ <h3>
<a id="demo" class="anchor" href="#demo"><span
class="octicon octicon-link"></span></a>Demo</h3>

<div id="page-content" class="well"></div>
<div id="page-content" class="well">Page 1</div>
<div class="text-center">
<ul id="pagination-demo" class="pagination-sm"></ul>
</div>
Expand Down Expand Up @@ -156,7 +156,7 @@ <h4>Synchronized pagination elements</h4>

<div class="text-center">
<ul class="sync-pagination pagination-sm"></ul>
<div id="sync-example-page-content" class="well"></div>
<div id="sync-example-page-content" class="well">Page 1</div>
<ul class="sync-pagination pagination-sm"></ul>
</div>

Expand Down
15 changes: 1 addition & 14 deletions js/jquery.twbsPagination.js
Expand Up @@ -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') ?
Expand All @@ -62,8 +62,6 @@
this.render(this.getPages(this.options.startPage));
this.setupEvents();

this.$element.trigger('page', this.options.startPage);

return this;
},

Expand Down Expand Up @@ -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);
}
Expand Down
1 change: 0 additions & 1 deletion js/main.js
Expand Up @@ -18,6 +18,5 @@ $(document).ready(function () {
$('#sync-example-page-content').text('Page ' + page);
}
});

});

0 comments on commit 3bf652a

Please sign in to comment.