Sha256: e4cd256dd4b40b4d9d3ceaa794500b1c93a8713c6fb58104a475c2ffd3262c24

Contents?: true

Size: 329 Bytes

Versions: 3

Compression:

Stored size: 329 Bytes

Contents

pw.component.register('fastlink', function (view, config) {
  var that = this;

  if (window.history) {
    view.node.addEventListener('click', function (evt) {
      evt.preventDefault();
      window.history.pushState({ uri: this.href }, this.href, this.href);
      return false;
    });
  } else {
    // unsupported
  }
});

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pakyow-0.10.2 lib/generators/pakyow/app/templates/public/scripts/ring/components/fastlink.js
pakyow-0.10.1 lib/generators/pakyow/app/templates/public/scripts/ring/components/fastlink.js
pakyow-0.10.0 lib/generators/pakyow/app/templates/public/scripts/ring/components/fastlink.js