From 6857f7674d3937ae0d9d9749e8a2296f5f2b7c30 Mon Sep 17 00:00:00 2001 From: James Lal Date: Wed, 8 Aug 2012 00:02:25 -0700 Subject: replace hasOwnProperty with Object.hasOwnProperty calls --- lib/caldav/request/abstract.js | 2 +- lib/caldav/request/calendar_home.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/caldav/request') diff --git a/lib/caldav/request/abstract.js b/lib/caldav/request/abstract.js index cc60391..04101b5 100644 --- a/lib/caldav/request/abstract.js +++ b/lib/caldav/request/abstract.js @@ -21,7 +21,7 @@ this.sax = new SAX(); for (key in options) { - if (options.hasOwnProperty(key)) { + if (Object.hasOwnProperty.call(options, key)) { this[key] = options[key]; } } diff --git a/lib/caldav/request/calendar_home.js b/lib/caldav/request/calendar_home.js index 7d4c744..5ededb5 100644 --- a/lib/caldav/request/calendar_home.js +++ b/lib/caldav/request/calendar_home.js @@ -14,7 +14,7 @@ } for (key in options) { - if (options.hasOwnProperty(key)) { + if (Object.hasOwnProperty.call(options, key)) { this[key] = options[key]; } } @@ -26,7 +26,7 @@ var url, results = [], prop; for (url in data) { - if (data.hasOwnProperty(url)) { + if (Object.hasOwnProperty.call(data, url)) { if (name in data[url]) { prop = data[url][name]; if (prop.status === '200') { -- cgit