diff --git a/dev/src/hasher.js b/dev/src/hasher.js index 43b3005..9f0d902 100644 --- a/dev/src/hasher.js +++ b/dev/src/hasher.js @@ -349,6 +349,16 @@ var hasher = (function(window){ } }, + /** + * Set Hash value, generating a new history record. + * Do not dispatch events for this hash change. + */ + setHashQuiet : function(path){ + hasher.changed.active = false; + hasher.setHash.apply(null, arguments); + hasher.changed.active = true; + }, + /** * Set Hash value without keeping previous hash on the history record. * Similar to calling `window.location.replace("#/hash")` but will also work on IE6-7. @@ -373,6 +383,16 @@ var hasher = (function(window){ } }, + /** + * Set Hash value without keeping previous hash on the history record. + * Do not dispatch events for this hash change. + */ + replaceHashQuiet : function(path){ + hasher.changed.active = false; + hasher.replaceHash.apply(null, arguments); + hasher.changed.active = true; + }, + /** * @return {string} Hash value without '#', `hasher.appendHash` and `hasher.prependHash`. */ diff --git a/dist/docs/files.html b/dist/docs/files.html index 31d58c8..16c5d26 100644 --- a/dist/docs/files.html +++ b/dist/docs/files.html @@ -42,7 +42,7 @@