'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});
/**
 * Created by baoyinghai on 4/14/17.
 */
var setUserSelectNone = exports.setUserSelectNone = function setUserSelectNone(mountEle) {
  if (!mountEle) return;
  mountEle.className += ' user-select-none';
};

var setUserSelectAllow = exports.setUserSelectAllow = function setUserSelectAllow(mountEle) {
  if (!mountEle) return;
  mountEle.className = mountEle.className.replace('user-select-none', '');
};

var setGlobalUserSelectNone = exports.setGlobalUserSelectNone = function setGlobalUserSelectNone() {
  setUserSelectNone(document.getElementsByTagName('body')[0]);
};

var setGlobalUserSelectAllow = exports.setGlobalUserSelectAllow = function setGlobalUserSelectAllow() {
  setUserSelectAllow(document.getElementsByTagName('body')[0]);
};