Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Provide destroy method (first draft)
  • Loading branch information
Eugene committed Mar 11, 2014
1 parent f273955 commit 242d003
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jquery.twbsPagination.js
Expand Up @@ -68,6 +68,10 @@

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

destroy: function () {
this.$element.empty();
},

show: function (page) {
if (page < 1 || page > this.options.totalPages) {
Expand Down

0 comments on commit 242d003

Please sign in to comment.