/**
 * Created by baoyinghai on 4/14/17.
 */
export const setUserSelectNone = mountEle => {
  if (!mountEle) return;
  mountEle.className += ' user-select-none';
};

export const setUserSelectAllow = mountEle => {
  if (!mountEle) return;
  mountEle.className = mountEle.className.replace('user-select-none', '');
};

export const setGlobalUserSelectNone = () => {
  setUserSelectNone(document.getElementsByTagName('body')[0]);
};

export const setGlobalUserSelectAllow = () => {
  setUserSelectAllow(document.getElementsByTagName('body')[0]);
};

