jquery - Facebox getting slower and slower when reopened, close buttons increasing, i think multiple Copies of Content -


facebox works fine , open faster when opened first time, when click on facebox link second time, third time, slower & slower. first time, show 1 cross/close button on top-right corner of facebox window, continue increase close buttons when facebox reopened. i.e. 2 close buttons when facebox opened second time , 3 when opened 3 times , on. think, opening multiple copies of content in facebox becoming slower & slower each time reopened.

i have seen post, related older version of facebox , not solving problem. https://groups.google.com/forum/#!topic/facebox/9kjptizntzy

i have version 1.3 of facebox ( https://github.com/defunkt/facebox ). reffering above post, seeing following code in facebox.js, have pasted code here follows. kindly please guide.

  reveal: function(data, klass) {   $(document).trigger('beforereveal.facebox')   if (klass) $('#facebox .content').addclass(klass)   $('#facebox .content').empty().append(data)   $('#facebox .popup').children().fadein('normal')   $('#facebox').css('left', $(window).width() / 2 - ($('#facebox      .popup').outerwidth() / 2))   $(document).trigger('reveal.facebox').trigger('afterreveal.facebox') },  close: function() {   $(document).trigger('close.facebox')   return false  } 


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

c# - two queries in same method -