Skip to content

Commit

Permalink
x in obj -> obj.hasOwnProperty(x)
Browse files Browse the repository at this point in the history
  • Loading branch information
AJ ONeal committed Jan 26, 2013
1 parent 8030a1a commit c8bdb31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/localStorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
db = LocalStorage;

db.prototype.getItem = function (key) {
if (key in this) {
if (this.hasOwnProperty(key)) {
return String(this[key]);
}
return null;
Expand Down

0 comments on commit c8bdb31

Please sign in to comment.