Skip to content

Commit

Permalink
Changes: Fixes for 'show'、'hide' method.
Browse files Browse the repository at this point in the history
  • Loading branch information
superRaytin authored and 羽牧 committed Jan 15, 2015
1 parent 1af67c0 commit 2481d65
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions dist/pagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -510,15 +510,19 @@
},

show: function(){
if(container.is(':visible')) return;
var self = this;

if(self.model.el.is(':visible')) return;

container.show();
self.model.el.show();
},

hide: function(){
if(!container.is(':visible')) return;
var self = this;

if(!self.model.el.is(':visible')) return;

container.hide();
self.model.el.hide();
},

// Replace the variables of template
Expand Down
Loading

0 comments on commit 2481d65

Please sign in to comment.