Skip to content

Commit 610796b

Browse files
author
scottydev
committed
Adding callback function on overlay close. IE9 and below keeps letting flash movies play after overlay is closed. Syntax:
$.overlay({ speed: 400, closeCallback: function(){ } }
1 parent 7c6634b commit 610796b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/overlay/overlay.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,10 @@
208208
if (maskConf) {
209209
$.mask.close();
210210
}
211+
212+
if( typeof conf.closeCallback === 'function' ){
213+
conf.closeCallback();
214+
}
211215

212216
return self;
213217
},

0 commit comments

Comments
 (0)