Sha256: 0410aa2635f79cf44c15b03fe569979d22e0ea4cb04540f28aec79a204f99080

Contents?: true

Size: 443 Bytes

Versions: 7

Compression:

Stored size: 443 Bytes

Contents

releaseClicks = (function(document) {
  if (document.addEventListener) {
    var events = [];
    function handler(event) {
      var data = event.target.dataset;
      if (data && data.replace) {
        events.push(event);
        event.preventDefault();
      }
    }
    document.addEventListener('click', handler);
    return function() {
      document.removeEventListener('click', handler);
      return events;
    }
  }
})(document);

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
twigg-app-0.0.7 public/vendor/replacejs/primer.js
twigg-app-0.0.6 public/vendor/replacejs/primer.js
twigg-app-0.0.5 public/vendor/replacejs/primer.js
twigg-app-0.0.4 public/vendor/replacejs/primer.js
twigg-app-0.0.3 public/vendor/replacejs/primer.js
twigg-app-0.0.2 public/vendor/replacejs/primer.js
twigg-app-0.0.1 public/vendor/replacejs/primer.js