Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions dev/src/hasher.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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`.
*/
Expand Down
4 changes: 2 additions & 2 deletions dist/docs/files.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ <h1 class="classTitle">File Index</h1>


<div class="member">
<h2><a href="symbols/src/_Users_millermedeiros_Projects__open_source_Hasher_dist_js_hasher.js.html">/Users/millermedeiros/Projects/_open_source/Hasher/dist/js/hasher.js</a></h2>
<h2><a href="symbols/src/_Users_adam_Projects_Hasher_dist_js_hasher.js.html">/Users/adam/Projects/Hasher/dist/js/hasher.js</a></h2>

<dl>

Expand All @@ -57,7 +57,7 @@ <h2><a href="symbols/src/_Users_millermedeiros_Projects__open_source_Hasher_dist
</div>
<div class="fineprint" style="clear:both;text-align:center">

Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blankt">JsDoc Toolkit</a> 2.4.0 on Mon Nov 11 2013 15:19:04 GMT-0200 (BRST)
Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blankt">JsDoc Toolkit</a> 2.4.0 on Mon Oct 27 2014 10:53:46 GMT+0100 (CET)
| template based on Steffen Siering <a href="http://github.com/urso/jsdoc-simple">jsdoc-simple</a>.
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion dist/docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ <h2><a href="symbols/hasher.html">hasher</a></h2>
</div>
<div class="fineprint" style="clear:both;text-align:center">

Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blankt">JsDoc Toolkit</a> 2.4.0 on Mon Nov 11 2013 15:19:04 GMT-0200 (BRST)
Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blankt">JsDoc Toolkit</a> 2.4.0 on Mon Oct 27 2014 10:53:46 GMT+0100 (CET)
| template based on Steffen Siering <a href="http://github.com/urso/jsdoc-simple">jsdoc-simple</a>.
</div>
</body>
Expand Down
20 changes: 19 additions & 1 deletion dist/docs/symbolindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,15 @@ <h1 id="classTitle">Symbol Index</h1>
</td>
</tr>

<tr class="symbolEntry">
<td class="symbolName">replaceHashQuiet</td>
<td>

<a href="symbols/hasher.html#.replaceHashQuiet">hasher.replaceHashQuiet</a>

</td>
</tr>

<tr class="symbolEntry">
<td class="symbolName">separator</td>
<td>
Expand All @@ -228,6 +237,15 @@ <h1 id="classTitle">Symbol Index</h1>
</td>
</tr>

<tr class="symbolEntry">
<td class="symbolName">setHashQuiet</td>
<td>

<a href="symbols/hasher.html#.setHashQuiet">hasher.setHashQuiet</a>

</td>
</tr>

<tr class="symbolEntry">
<td class="symbolName">stop</td>
<td>
Expand Down Expand Up @@ -270,7 +288,7 @@ <h1 id="classTitle">Symbol Index</h1>
</div>
<div class="fineprint" style="clear:both;text-align:center">

Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blankt">JsDoc Toolkit</a> 2.4.0 on Mon Nov 11 2013 15:19:04 GMT-0200 (BRST)
Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blankt">JsDoc Toolkit</a> 2.4.0 on Mon Oct 27 2014 10:53:46 GMT+0100 (CET)
| template based on Steffen Siering <a href="http://github.com/urso/jsdoc-simple">jsdoc-simple</a>.
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion dist/docs/symbols/_global_.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ <h1 class="classTitle">
<!-- ============================== footer ================================= -->
<div class="fineprint" style="clear:both;text-align:center">

Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blankt">JsDoc Toolkit</a> 2.4.0 on Mon Nov 11 2013 15:19:04 GMT-0200 (BRST)
Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blankt">JsDoc Toolkit</a> 2.4.0 on Mon Oct 27 2014 10:53:46 GMT+0100 (CET)
| template based on Steffen Siering <a href="http://github.com/urso/jsdoc-simple">jsdoc-simple</a>.
</div>
</body>
Expand Down
90 changes: 88 additions & 2 deletions dist/docs/symbols/hasher.html
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,18 @@ <h3>Functions</h3>
<a href="../symbols/hasher.html#.replaceHash">replaceHash</a>
</li>

<li class="fixedFont">
<a href="../symbols/hasher.html#.replaceHashQuiet">replaceHashQuiet</a>
</li>

<li class="fixedFont">
<a href="../symbols/hasher.html#.setHash">setHash</a>
</li>

<li class="fixedFont">
<a href="../symbols/hasher.html#.setHashQuiet">setHashQuiet</a>
</li>

<li class="fixedFont">
<a href="../symbols/hasher.html#.stop">stop</a>
</li>
Expand Down Expand Up @@ -172,7 +180,7 @@ <h1 class="classTitle">
History Manager for rich-media applications.


<br /><i>Defined in: </i> <a href="../symbols/src/_Users_millermedeiros_Projects__open_source_Hasher_dist_js_hasher.js.html">hasher.js</a>.
<br /><i>Defined in: </i> <a href="../symbols/src/_Users_adam_Projects_Hasher_dist_js_hasher.js.html">hasher.js</a>.

</p>

Expand Down Expand Up @@ -710,6 +718,45 @@ <h1 class="classTitle">



</div>

<div class="member">
<a name=".replaceHashQuiet"> </a>
<div class="fixedFont">
<div class="modifiers">&lt;static&gt;
</div>

<span class="light">hasher.</span><b>replaceHashQuiet</b>(path)

</div>
<div class="description">
<p>Set Hash value without keeping previous hash on the history record.
Do not dispatch events for this hash change.</p>


</div>




<dl class="detailList">
<dt class="heading">Parameters:</dt>

<dt>
<b>path</b>

</dt>
<dd></dd>

</dl>








</div>

<div class="member">
Expand Down Expand Up @@ -754,6 +801,45 @@ <h1 class="classTitle">



</div>

<div class="member">
<a name=".setHashQuiet"> </a>
<div class="fixedFont">
<div class="modifiers">&lt;static&gt;
</div>

<span class="light">hasher.</span><b>setHashQuiet</b>(path)

</div>
<div class="description">
<p>Set Hash value, generating a new history record.
Do not dispatch events for this hash change.</p>


</div>




<dl class="detailList">
<dt class="heading">Parameters:</dt>

<dt>
<b>path</b>

</dt>
<dd></dd>

</dl>








</div>

<div class="member">
Expand Down Expand Up @@ -834,7 +920,7 @@ <h1 class="classTitle">
<!-- ============================== footer ================================= -->
<div class="fineprint" style="clear:both;text-align:center">

Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blankt">JsDoc Toolkit</a> 2.4.0 on Mon Nov 11 2013 15:19:04 GMT-0200 (BRST)
Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blankt">JsDoc Toolkit</a> 2.4.0 on Mon Oct 27 2014 10:53:46 GMT+0100 (CET)
| template based on Steffen Siering <a href="http://github.com/urso/jsdoc-simple">jsdoc-simple</a>.
</div>
</body>
Expand Down
Loading