Permalink
Browse files

Open location links in 'top' window by default.

Allows the links to bust out of iframes.
  • Loading branch information...
1 parent 8fd0cb7 commit 94b61fe334c8115b799374ee6a655daaee3e8a45 Will White committed Jul 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 control/lib/location.js
View
@@ -10,7 +10,7 @@ wax.location = function() {
} else {
var loc = o.formatter({ format: 'location' }, o.data);
if (loc) {
- window.location.href = loc;
+ window.top.location.href = loc;
}
}
}

0 comments on commit 94b61fe

Please sign in to comment.