see issue 172 where i try to quickly pop these windows where this could be
useful
//could manually have to call these three lines each time
SOLUTION ONE
IN CODE...
jQuery.fx.off = true;
$.nyroModalRemove(); //so that if closes right away not to cause issues
jQuery.fx.off = false;//then turn effects back on
...then open next window
i do not want to turn off effect all the time, but just in this case so i
can quickly get rid of the window. the issue with this is what if something
else needs effect on right at the moment i turn it off
SOLUTION TWO
or i created a custom function to do the same thing (this reuses some code
and can be harder to maintain but could we move solution one into a method
like this )
// Remove the modal function completely [custom suggested function, maybe
call it nyroModalQuickRemove ]
$.nyroModalEndRemove = function() {
if(modal.full){
modal.ready = false;
modal.anim = true;
modal.closing = true;
endRemove();
}
};
USING SOLUTION ONES'S CODE
// Remove the modal function completely
$.nyroModalEndRemove = function() {
jQuery.fx.off = true;
$.nyroModalRemove(); //so that if closes right away not to
cause issues
jQuery.fx.off = false;//then turn effects back on
};
IN CODE...
$.nyroModalEndRemove();
...then open next window