summaryrefslogtreecommitdiff
path: root/public/assets/js/_dependency-control/utils/destroyevent.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/assets/js/_dependency-control/utils/destroyevent.js')
-rw-r--r--public/assets/js/_dependency-control/utils/destroyevent.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/public/assets/js/_dependency-control/utils/destroyevent.js b/public/assets/js/_dependency-control/utils/destroyevent.js
new file mode 100644
index 0000000..e6fe48a
--- /dev/null
+++ b/public/assets/js/_dependency-control/utils/destroyevent.js
@@ -0,0 +1,11 @@
+define(function () {
+ (function ($) {
+ $.event.special.destroyed = {
+ remove: function (o) {
+ if ((o.handler && o.type !== 'destroyed')) {
+ o.handler()
+ }
+ }
+ }
+ })(jQuery)
+}); \ No newline at end of file