Skip to content

Commit

Permalink
fix: clears everything bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
giraysam committed Dec 18, 2017
1 parent ccb1c15 commit 9ed78a0
Show file tree
Hide file tree
Showing 12 changed files with 1,943 additions and 11 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "boomerang-cache",
"version": "1.1.0",
"version": "1.2.0",
"homepage": "https://github.com/giraysam/boomerang-cache",
"authors": [
"giraysam <[email protected]>", "feyyazakkus <[email protected]>"
Expand Down
1 change: 1 addition & 0 deletions dist/boomerang-cache.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/boomerang-cache.min-1.2.0.js

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions docs/boomerang-cache.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ <h1 class="page-title">boomerang-cache.js</h1>
* @name BoomerangCache Api
*
* @namespace BoomerangCache
* @version 1.1.0
* @version 1.2.0
* @copyright 2016
* @author [giraysam]{@link http://giraysam.github.io} - [feyyazakkus]{@link https://github.com/feyyazakkus}
* @file
Expand Down Expand Up @@ -509,7 +509,10 @@ <h1 class="page-title">boomerang-cache.js</h1>
* boomerang.clear();
*/
BoomerangCache.prototype.clear = function() {
this.storage.clear();
var items = Object.keys(this.storage.getAll(this.namespace, this.options.encrypt));
for (var i = 0; i &lt; items.length; i++) {
this.remove(items[i]);
}
};

/**
Expand Down Expand Up @@ -540,7 +543,7 @@ <h1 class="page-title">boomerang-cache.js</h1>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.2</a> on Thu Nov 10 2016 14:42:05 GMT+0200 (EET) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.2</a> on Mon Dec 18 2017 12:48:17 GMT+0300 (+03) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
4 changes: 2 additions & 2 deletions docs/global.html
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ <h4 class="name" id="check"><span class="type-signature"></span>check<span class

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="boomerang-cache.js.html">boomerang-cache.js</a>, <a href="boomerang-cache.js.html#line476">line 476</a>
<a href="boomerang-cache.js.html">boomerang-cache.js</a>, <a href="boomerang-cache.js.html#line479">line 479</a>
</li></ul></dd>


Expand Down Expand Up @@ -1289,7 +1289,7 @@ <h5>Returns:</h5>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.2</a> on Thu Nov 10 2016 14:42:05 GMT+0200 (EET) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.2</a> on Mon Dec 18 2017 12:48:17 GMT+0300 (+03) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ <h2>


<dt class="tag-version">Version:</dt>
<dd class="tag-version"><ul class="dummy"><li>1.1.0</li></ul></dd>
<dd class="tag-version"><ul class="dummy"><li>1.2.0</li></ul></dd>



Expand Down Expand Up @@ -162,7 +162,7 @@ <h2>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.2</a> on Thu Nov 10 2016 14:42:05 GMT+0200 (EET) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.2</a> on Mon Dec 18 2017 12:48:17 GMT+0300 (+03) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
Loading

0 comments on commit 9ed78a0

Please sign in to comment.