Permalink
Browse files

version 6.2.3, Fix #212

  • Loading branch information...
1 parent cd05aa2 commit 4215d6b914747add552439e216593f1f4a2671d9 @tmcw tmcw committed Jun 20, 2012
Showing with 31 additions and 26 deletions.
  1. +5 −0 CHANGELOG.md
  2. +1 −1 control/lib/hash.js
  3. +2 −2 dist/wax.esri.js
  4. +2 −2 dist/wax.esri.min.js
  5. +2 −2 dist/wax.g.js
  6. +2 −2 dist/wax.g.min.js
  7. +2 −2 dist/wax.leaf.js
  8. +2 −2 dist/wax.leaf.min.js
  9. +2 −2 dist/wax.mm.js
  10. +2 −2 dist/wax.mm.min.js
  11. +2 −2 dist/wax.ol.js
  12. +2 −2 dist/wax.ol.min.js
  13. +2 −2 dist/wax.p.js
  14. +2 −2 dist/wax.p.min.js
  15. +1 −1 package.json
View
@@ -1,5 +1,10 @@
## Changelog
+## 6.2.3
+
+* Fix bug in Hash control that doubled URLs when the page
+ started without a hash.
+
## 6.2.2
* Update mustache dependency to 0.5.0-dev to fix issue #213
View
@@ -11,7 +11,7 @@ wax.hash = function(options) {
function pushState(state) {
var l = window.location;
- l.replace(l.toString().replace(l.hash, '#' + state));
+ l.replace(l.toString().replace((l.hash || /$/), '#' + state));
}
var s0, // old hash
View
@@ -1,4 +1,4 @@
-/* wax - 6.2.2 - 1.0.4-589-g9db2119 */
+/* wax - 6.2.3 - 1.0.4-590-gcd05aa2 */
!function (name, context, definition) {
@@ -2343,7 +2343,7 @@ wax.hash = function(options) {
function pushState(state) {
var l = window.location;
- l.replace(l.toString().replace(l.hash, '#' + state));
+ l.replace(l.toString().replace((l.hash || /$/), '#' + state));
}
var s0, // old hash
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1,4 +1,4 @@
-/* wax - 6.2.2 - 1.0.4-589-g9db2119 */
+/* wax - 6.2.3 - 1.0.4-590-gcd05aa2 */
!function (name, context, definition) {
@@ -2343,7 +2343,7 @@ wax.hash = function(options) {
function pushState(state) {
var l = window.location;
- l.replace(l.toString().replace(l.hash, '#' + state));
+ l.replace(l.toString().replace((l.hash || /$/), '#' + state));
}
var s0, // old hash
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1,4 +1,4 @@
-/* wax - 6.2.2 - 1.0.4-589-g9db2119 */
+/* wax - 6.2.3 - 1.0.4-590-gcd05aa2 */
!function (name, context, definition) {
@@ -2343,7 +2343,7 @@ wax.hash = function(options) {
function pushState(state) {
var l = window.location;
- l.replace(l.toString().replace(l.hash, '#' + state));
+ l.replace(l.toString().replace((l.hash || /$/), '#' + state));
}
var s0, // old hash
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1,4 +1,4 @@
-/* wax - 6.2.2 - 1.0.4-589-g9db2119 */
+/* wax - 6.2.3 - 1.0.4-590-gcd05aa2 */
!function (name, context, definition) {
@@ -2343,7 +2343,7 @@ wax.hash = function(options) {
function pushState(state) {
var l = window.location;
- l.replace(l.toString().replace(l.hash, '#' + state));
+ l.replace(l.toString().replace((l.hash || /$/), '#' + state));
}
var s0, // old hash
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1,4 +1,4 @@
-/* wax - 6.2.2 - 1.0.4-589-g9db2119 */
+/* wax - 6.2.3 - 1.0.4-590-gcd05aa2 */
!function (name, context, definition) {
@@ -2364,7 +2364,7 @@ wax.hash = function(options) {
function pushState(state) {
var l = window.location;
- l.replace(l.toString().replace(l.hash, '#' + state));
+ l.replace(l.toString().replace((l.hash || /$/), '#' + state));
}
var s0, // old hash
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1,4 +1,4 @@
-/* wax - 6.2.2 - 1.0.4-589-g9db2119 */
+/* wax - 6.2.3 - 1.0.4-590-gcd05aa2 */
!function (name, context, definition) {
@@ -2343,7 +2343,7 @@ wax.hash = function(options) {
function pushState(state) {
var l = window.location;
- l.replace(l.toString().replace(l.hash, '#' + state));
+ l.replace(l.toString().replace((l.hash || /$/), '#' + state));
}
var s0, // old hash
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1,6 +1,6 @@
{
"name": "wax",
- "version": "6.2.2",
+ "version": "6.2.3",
"description": "Tools for improving web maps.",
"repository": {
"type": "git",

0 comments on commit 4215d6b

Please sign in to comment.