From 36e19f1e7879447fead110ac1f73c1337cf8c527 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sat, 26 Jan 2013 02:04:32 -0700 Subject: [PATCH] fixed same prototype bug as in localStorage --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 275a97d..3b72e52 100644 --- a/lib/index.js +++ b/lib/index.js @@ -36,7 +36,7 @@ } Storage.prototype.getItem = function (key) { - if (key in this) { + if (this.hasOwnProperty(key)) { return String(this[key]); } return null;