x in obj -> obj.hasOwnProperty(x)
This commit is contained in:
parent
8030a1a41e
commit
c8bdb31e84
|
@ -15,7 +15,7 @@
|
||||||
db = LocalStorage;
|
db = LocalStorage;
|
||||||
|
|
||||||
db.prototype.getItem = function (key) {
|
db.prototype.getItem = function (key) {
|
||||||
if (key in this) {
|
if (this.hasOwnProperty(key)) {
|
||||||
return String(this[key]);
|
return String(this[key]);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in New Issue