sample/sample.js
function preventAll () {
    function shield (req) {
      req.prevent();
    }
    measly.on('create', shield);
    text(preventButton, 'Shield On..');
    preventButton.classList.add('cm-prevent-on');

    setTimeout(function () {
      measly.off('create', shield);
      text(preventButton, 'Prevent for 5s');
      preventButton.classList.remove('cm-prevent-on');
    }, 5000);
  }
function preventAll () {
    function shield (req) {
      req.prevent();
    }
    measly.on('create', shield);
    text(preventButton, 'Shield On..');
    preventButton.classList.add('cm-prevent-on');

    setTimeout(function () {
      measly.off('create', shield);
      text(preventButton, 'Prevent for 5s');
      preventButton.classList.remove('cm-prevent-on');
    }, 5000);
  }
function preventAll ( ) { function shield ( req ) { req . prevent ( ) ; } measly . on ( 'create' , shield ) ; text ( preventButton , 'Shield On..' ) ; preventButton . classList . add ( 'cm-prevent-on' ) ; setTimeout ( function ( ) { measly . off ( 'create' , shield ) ; text ( preventButton , 'Prevent for 5s' ) ; preventButton . classList . remove ( 'cm-prevent-on' ) ; } , 5000 ) ; }
prevents all requests fired by measly for 5 seconds.
prevents all requests fired by measly for 5 seconds .