ok

Mini Shell

Direktori : /home/ngwcolle/public_html/mis/admin/vendor/select2/src/js/select2/selection/
Upload File :
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;
});

Zerion Mini Shell 1.0