JSFiddle - React, Tailwind, and code Playground

by Sean Wessell

HTML

<button>
  remove namespace
</button>

CSS

html,
body {
  height: 100%;
}

JavaScript

window['mUpEventHandler'] = function () {
  alert('test');
}


$('body').on('mouseup.mUpEventHandler', function () {
  mUpEventHandler()
});

$('button').click(function () {
  $('body').off('.mUpEventHandler');
})