ok
Direktori : /home/ngwcolle/public_html/mis/admin/vendor/select2/src/js/select2/selection/ |
Current File : //home/ngwcolle/public_html/mis/admin/vendor/select2/src/js/select2/selection/clickMask.js |
define([ 'jquery' ], function ($) { function ClickMask () { } ClickMask.prototype.bind = function (decorate, $container, container) { var self = this; decorate.call(this, $container, container); this.$mask = $( '<div class="select2-close-mask"></div>' ); this.$mask.on('mousedown touchstart click', function () { self.trigger('close', {}); }); }; ClickMask.prototype._attachCloseHandler = function (decorate, container) { $(document.body).append(this.$mask); }; ClickMask.prototype._detachCloseHandler = function (deocrate, container) { this.$mask.detach(); }; return ClickMask; });