Skip to content

Commit 2481d65

Browse files
superRaytin羽牧
authored andcommitted
Changes: Fixes for 'show'、'hide' method.
1 parent 1af67c0 commit 2481d65

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

dist/pagination.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -510,15 +510,19 @@
510510
},
511511

512512
show: function(){
513-
if(container.is(':visible')) return;
513+
var self = this;
514+
515+
if(self.model.el.is(':visible')) return;
514516

515-
container.show();
517+
self.model.el.show();
516518
},
517519

518520
hide: function(){
519-
if(!container.is(':visible')) return;
521+
var self = this;
522+
523+
if(!self.model.el.is(':visible')) return;
520524

521-
container.hide();
525+
self.model.el.hide();
522526
},
523527

524528
// Replace the variables of template

0 commit comments

Comments
 (0)