Skip to content

Commit c6e1ad5

Browse files
pravicc-smile
authored andcommitted
Handle popup closing in video generator sample.
1 parent 63eef08 commit c6e1ad5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

samples/video/video-generator-behavior-demo.htm

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@
4141
};
4242
video.detach();
4343
host.root.$(body).append(video);
44+
45+
host.on("closing", function(evt) {
46+
// detach
47+
video.detach();
48+
body.append(video);
49+
$(#show-detached).value = false;
50+
});
51+
4452
} else {
4553
video.detach();
4654
self.$(body).append(video);

0 commit comments

Comments
 (0)