diff options
Diffstat (limited to 'lib/caldav')
-rw-r--r-- | lib/caldav/connection.js | 2 | ||||
-rw-r--r-- | lib/caldav/request/abstract.js | 2 | ||||
-rw-r--r-- | lib/caldav/request/calendar_home.js | 4 | ||||
-rw-r--r-- | lib/caldav/resources/calendar.js | 3 | ||||
-rw-r--r-- | lib/caldav/responder.js | 2 | ||||
-rw-r--r-- | lib/caldav/sax/base.js | 2 | ||||
-rw-r--r-- | lib/caldav/sax/dav_response.js | 2 | ||||
-rw-r--r-- | lib/caldav/xhr.js | 4 |
8 files changed, 11 insertions, 10 deletions
diff --git a/lib/caldav/connection.js b/lib/caldav/connection.js index dae38d7..6884217 100644 --- a/lib/caldav/connection.js +++ b/lib/caldav/connection.js @@ -17,7 +17,7 @@ var key; for (key in options) { - if (options.hasOwnProperty(key)) { + if (Object.hasOwnProperty.call(options, key)) { this[key] = options[key]; } } 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') { diff --git a/lib/caldav/resources/calendar.js b/lib/caldav/resources/calendar.js index 9bff517..2adf614 100644 --- a/lib/caldav/resources/calendar.js +++ b/lib/caldav/resources/calendar.js @@ -34,6 +34,7 @@ 'calendar-description': 'description', 'getctag': 'ctag', + 'getetag': 'etag', 'getlastmodified': 'lastmodified', 'resourcetype': { @@ -112,7 +113,7 @@ } for (key in options) { - if (options.hasOwnProperty(key)) { + if (Object.hasOwnProperty.call(options, key)) { if (key in this._map) { descriptor = this._map[key]; value = options[key]; diff --git a/lib/caldav/responder.js b/lib/caldav/responder.js index 6ba41c4..ae1cf16 100644 --- a/lib/caldav/responder.js +++ b/lib/caldav/responder.js @@ -90,7 +90,7 @@ if (typeof(callback) === 'undefined' && typeof(type) === 'object') { for (event in type) { - if (type.hasOwnProperty(event)) { + if (Object.hasOwnProperty.call(type, event)) { this.addEventListener(event, type[event]); } } diff --git a/lib/caldav/sax/base.js b/lib/caldav/sax/base.js index a823aad..3672af3 100644 --- a/lib/caldav/sax/base.js +++ b/lib/caldav/sax/base.js @@ -21,7 +21,7 @@ child._super = this; for (key in obj) { - if (obj.hasOwnProperty(key)) { + if (Object.hasOwnProperty.call(obj, key)) { child[key] = obj[key]; } } diff --git a/lib/caldav/sax/dav_response.js b/lib/caldav/sax/dav_response.js index 64bf2dd..7256ce6 100644 --- a/lib/caldav/sax/dav_response.js +++ b/lib/caldav/sax/dav_response.js @@ -192,7 +192,7 @@ delete this.current.prop; for (key in props) { - if (props.hasOwnProperty(key)) { + if (Object.hasOwnProperty.call(props, key)) { propstat[key] = { status: status, value: props[key] diff --git a/lib/caldav/xhr.js b/lib/caldav/xhr.js index ff4bdd3..4ed7ec6 100644 --- a/lib/caldav/xhr.js +++ b/lib/caldav/xhr.js @@ -34,7 +34,7 @@ } for (key in options) { - if (options.hasOwnProperty(key)) { + if (Object.hasOwnProperty.call(options, key)) { this[key] = options[key]; } } @@ -113,7 +113,7 @@ } for (header in this.headers) { - if (this.headers.hasOwnProperty(header)) { + if (Object.hasOwnProperty.call(this.headers, header)) { xhr.setRequestHeader(header, this.headers[header]); } } |