Skip to content

Commit

Permalink
fixed Uncaught ReferenceError
Browse files Browse the repository at this point in the history
  • Loading branch information
wuchangming committed Jun 20, 2016
1 parent c18d623 commit 88c4bd6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/web-storage-cache.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
"storage",
"expires"
],
"version": "1.0.0",
"version": "1.0.1",
"homepage": "https://github.com/WQTeam/web-storage-cache",
"repository": {
"type": "git",
"url": "git://github.com/WQTeam/web-storage-cache.git"
},
"browser": "src/web-storage-cache.js",
"main": "src/web-storage-cache.js",
"main": "dist/web-storage-cache.js",
"bugs": {
"url": "https://github.com/WQTeam/web-storage-cache/issues"
},
Expand Down
3 changes: 3 additions & 0 deletions src/web-storage-cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@
}

function _isCacheItem(item) {
if (typeof item !== 'object') {
return false;
}
if(item) {
if('c' in item && 'e' in item && 'v' in item) {
return true;
Expand Down

0 comments on commit 88c4bd6

Please sign in to comment.