summaryrefslogtreecommitdiff
path: root/html/assets/js/utils/destroyevent.js
blob: e6fe48acd3436559e9e3b7ba0ad117d00d7105e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
define(function () {
    (function ($) {
        $.event.special.destroyed = {
            remove: function (o) {
                if ((o.handler && o.type !== 'destroyed')) {
                    o.handler()
                }
            }
        }
    })(jQuery)
});