Skip to content

Commit

Permalink
chore(all): prepare release 1.0.0-beta.1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Dec 3, 2015
1 parent a2eddd8 commit d37f970
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 12 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-history-browser",
"version": "1.0.0-beta.1",
"version": "1.0.0-beta.1.0.1",
"description": "An implementation of the Aurelia history interface based on standard browser hash change and push state mechanisms.",
"keywords": [
"aurelia",
Expand Down
4 changes: 2 additions & 2 deletions dist/amd/aurelia-history-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ define(['exports', 'core-js', 'aurelia-pal', 'aurelia-history'], function (expor
info.anchor = target;
info.href = href;

var hasModifierKey = event.altKey || event.ctrlKey || event.metaKey || event.shiftKey;
var leftButtonClicked = event.which === 1;
var isRelative = href && !(href.charAt(0) === '#' || /^[a-z]+:/i.test(href));

info.shouldHandleEvent = !hasModifierKey && isRelative;
info.shouldHandleEvent = leftButtonClicked && isRelative;
return info;
};

Expand Down
4 changes: 2 additions & 2 deletions dist/aurelia-history-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ export class DefaultLinkHandler extends LinkHandler {
info.anchor = target;
info.href = href;

let hasModifierKey = (event.altKey || event.ctrlKey || event.metaKey || event.shiftKey);
let leftButtonClicked = event.which === 1;
let isRelative = href && !(href.charAt(0) === '#' || (/^[a-z]+:/i).test(href));

info.shouldHandleEvent = !hasModifierKey && isRelative;
info.shouldHandleEvent = leftButtonClicked && isRelative;
return info;
}

Expand Down
4 changes: 2 additions & 2 deletions dist/commonjs/aurelia-history-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ var DefaultLinkHandler = (function (_LinkHandler) {
info.anchor = target;
info.href = href;

var hasModifierKey = event.altKey || event.ctrlKey || event.metaKey || event.shiftKey;
var leftButtonClicked = event.which === 1;
var isRelative = href && !(href.charAt(0) === '#' || /^[a-z]+:/i.test(href));

info.shouldHandleEvent = !hasModifierKey && isRelative;
info.shouldHandleEvent = leftButtonClicked && isRelative;
return info;
};

Expand Down
4 changes: 2 additions & 2 deletions dist/es6/aurelia-history-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ export class DefaultLinkHandler extends LinkHandler {
info.anchor = target;
info.href = href;

let hasModifierKey = (event.altKey || event.ctrlKey || event.metaKey || event.shiftKey);
let leftButtonClicked = event.which === 1;
let isRelative = href && !(href.charAt(0) === '#' || (/^[a-z]+:/i).test(href));

info.shouldHandleEvent = !hasModifierKey && isRelative;
info.shouldHandleEvent = leftButtonClicked && isRelative;
return info;
}

Expand Down
4 changes: 2 additions & 2 deletions dist/system/aurelia-history-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ System.register(['core-js', 'aurelia-pal', 'aurelia-history'], function (_export
info.anchor = target;
info.href = href;

var hasModifierKey = event.altKey || event.ctrlKey || event.metaKey || event.shiftKey;
var leftButtonClicked = event.which === 1;
var isRelative = href && !(href.charAt(0) === '#' || /^[a-z]+:/i.test(href));

info.shouldHandleEvent = !hasModifierKey && isRelative;
info.shouldHandleEvent = leftButtonClicked && isRelative;
return info;
};

Expand Down
8 changes: 8 additions & 0 deletions doc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 1.0.0-beta.1.0.1 (2015-12-03)


#### Bug Fixes

* **history-browser:** open link in new tab when it clicked with middle button ([8acf18fe](http://github.com/aurelia/history-browser/commit/8acf18fe820bed72e6957ed2f7686d37430b178b))


### 1.0.0-beta.1 (2015-11-16)


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-history-browser",
"version": "1.0.0-beta.1",
"version": "1.0.0-beta.1.0.1",
"description": "An implementation of the Aurelia history interface based on standard browser hash change and push state mechanisms.",
"keywords": [
"aurelia",
Expand Down

0 comments on commit d37f970

Please sign in to comment.