fixed same prototype bug as in localStorage

This commit is contained in:
AJ ONeal 2013-01-26 02:04:32 -07:00
parent 9616ea92b8
commit 36e19f1e78
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@
}
Storage.prototype.getItem = function (key) {
if (key in this) {
if (this.hasOwnProperty(key)) {
return String(this[key]);
}
return null;