Skip to content

Commit

Permalink
updates for dynamic page loading (eg smoothstate)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikos M committed Sep 20, 2016
1 parent f0ed374 commit 0eebc29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions popr/popr2.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ $.fn.popr2 = function( options ) {
activate_event = set.activate + '.popr2box mouseup.popr2box';
activate_type = set.activate;
}
$(this).on(activate_event, set.selector, function(event) {
$(this).off(activate_event).on(activate_event, set.selector, function(event) {
event.stopPropagation( );
if ( activate_type !== event.type ) return false;
var el = this, $el = $(el), content, popr_class, attr_class = '', attr_mode, d_m;
Expand Down Expand Up @@ -127,7 +127,7 @@ $.fn.popr2 = function( options ) {

if ( !window_resize_added )
{
$(window).on('resize.popr2', function popr_resize( evt ){
$(window).off('resize.popr2').on('resize.popr2', function popr_resize( evt ){
// slight delay
setTimeout(function( ){
$('.popr_container').each(function( ){ popr_adjust( $(this), this._popr_target ); });
Expand Down
2 changes: 1 addition & 1 deletion popr/popr2.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0eebc29

Please sign in to comment.