diff options
author | James Lal <james@lightsofapollo.com> | 2012-08-08 00:02:25 -0700 |
---|---|---|
committer | James Lal <james@lightsofapollo.com> | 2012-08-08 00:02:25 -0700 |
commit | 6857f7674d3937ae0d9d9749e8a2296f5f2b7c30 (patch) | |
tree | 3f4f51c7caa12f2f02cdc94d7e80260fc64385e8 /lib/caldav/xhr.js | |
parent | 7a43bc130ad3eb7beb0dc20a495ca178268a2667 (diff) | |
download | jsCalDAV-6857f7674d3937ae0d9d9749e8a2296f5f2b7c30.tar.gz |
replace hasOwnProperty with Object.hasOwnProperty calls
Diffstat (limited to 'lib/caldav/xhr.js')
-rw-r--r-- | lib/caldav/xhr.js | 4 |
1 files changed, 2 insertions, 2 deletions
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]); } } |