lib/generators/pakyow/app/templates/public/scripts/ring/components/fastlink.js in pakyow-0.10.2 vs lib/generators/pakyow/app/templates/public/scripts/ring/components/fastlink.js in pakyow-0.11.0

- old
+ new

@@ -1,9 +1,10 @@ pw.component.register('fastlink', function (view, config) { - var that = this; - if (window.history) { view.node.addEventListener('click', function (evt) { + // don't break open in new tab! + if (evt.metaKey || evt.ctrlKey) return; + evt.preventDefault(); window.history.pushState({ uri: this.href }, this.href, this.href); return false; }); } else {