Skip to content

Commit

Permalink
Stable Version 2.4.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdobry committed Oct 18, 2014
1 parent 4e12ef3 commit ac9bfd1
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 7 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,8 @@
##### 2.4.1 - 18 October 2014

###### Backwards compatible bug fixes
- #133 - Fix ios privacy mode

##### 2.4.0 - 14 October 2014

###### Backwards compatible API changes
Expand Down
2 changes: 1 addition & 1 deletion README.md
@@ -1,7 +1,7 @@
## angular-cache
__A very useful replacement for Angular's $cacheFactory.__

__Version:__ 2.4.0
__Version:__ 2.4.1

All [Documentation](http://jmdobry.github.io/angular-cache) can be found at [jmdobry.github.io/angular-cache](http://jmdobry.github.io/angular-cache).

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Expand Up @@ -2,7 +2,7 @@
"author": "Jason Dobry",
"name": "angular-cache",
"description": "angular-cache is a very useful replacement for Angular's $cacheFactory.",
"version": "2.4.0",
"version": "2.4.1",
"homepage": "http://jmdobry.github.io/angular-cache/",
"repository": {
"type": "git",
Expand Down
8 changes: 7 additions & 1 deletion dist/angular-cache.js
@@ -1,7 +1,7 @@
/**
* @author Jason Dobry <jason.dobry@gmail.com>
* @file angular-cache.js
* @version 2.4.0 - Homepage <http://jmdobry.github.io/angular-cache/>
* @version 2.4.1 - Homepage <http://jmdobry.github.io/angular-cache/>
* @copyright (c) 2013-2014 Jason Dobry <http://jmdobry.github.io/angular-cache>
* @license MIT <https://github.com/jmdobry/angular-cache/blob/master/LICENSE>
*
Expand Down Expand Up @@ -975,6 +975,9 @@
* @param {object} [options] Configuration.
*/
this.remove = function (key, options) {
if (config.disabled) {
return;
}
options = options || {};
if (config.storePromises) {
delete promiseStorage[key];
Expand All @@ -994,6 +997,9 @@
* @desc Clear the cache.
*/
this.removeAll = function () {
if (config.disabled) {
return;
}
_removeAllFromStorage();
lruHeap.removeAll();
expiresHeap.removeAll();
Expand Down
4 changes: 2 additions & 2 deletions dist/angular-cache.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "angular-cache",
"description": "angular-cache is a very useful replacement for Angular's $cacheFactory.",
"version": "2.4.0",
"version": "2.4.1",
"homepage": "http://jmdobry.github.io/angular-cache",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/angular-cache.js
@@ -1,7 +1,7 @@
/**
* @author Jason Dobry <jason.dobry@gmail.com>
* @file angular-cache.js
* @version 2.4.0 - Homepage <http://jmdobry.github.io/angular-cache/>
* @version 2.4.1 - Homepage <http://jmdobry.github.io/angular-cache/>
* @copyright (c) 2013-2014 Jason Dobry <http://jmdobry.github.io/angular-cache>
* @license MIT <https://github.com/jmdobry/angular-cache/blob/master/LICENSE>
*
Expand Down

0 comments on commit ac9bfd1

Please sign in to comment.