You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, if I create an overlay with following code
varbox=$('#overlay').overlay({allowMultipleDisplay: false,// Also the default value.onBeforeClose: function(){console.log("Close triggered");}});// Opening the 'box' will output "Close triggered" to console.box.open();>"Close triggered"
I did a little digging and found that this if clause
For example, if I create an overlay with following code
I did a little digging and found that this if clause
executes
onBeforeClose
function regardless of overlay's current visibility state.I think the conditions in the if clause should be the other way around (like they are for
onBeforeOpen
function). What do you think?The text was updated successfully, but these errors were encountered: