Permalink
Browse files

support _blank property for multidomain

  • Loading branch information...
1 parent e43e071 commit 3c4bae4e402d63b63ae08c648c25c43935f9c1f2 @eduardocereto eduardocereto committed May 23, 2012
Showing with 11 additions and 3 deletions.
  1. +11 −3 src/plugins/multidomain.js
@@ -128,9 +128,17 @@ function track_links(event_used) {
}else {
if (event_used === 'click') {
this._addEventListener(el, event_used, function(e) {
- _gas.push(
- ['_link', this.href, _gas._allowAnchor]
- );
+ if (this.target && this.target=='_blank'){
+ window.open(
+ gh['tracker']['_getLinkerUrl'](
+ this.href, _gas._allowAnchor
+ )
+ );
+ }else{
+ _gas.push(
+ ['_link', this.href, _gas._allowAnchor]
+ );
+ }
if (e.preventDefault)
e.preventDefault();
else

0 comments on commit 3c4bae4

Please sign in to comment.