aboutsummaryrefslogtreecommitdiffstats
path: root/lib/caldav/sax/dav_response.js
diff options
context:
space:
mode:
authorJames Lal <james@lightsofapollo.com>2012-09-19 11:11:16 -0700
committerJames Lal <james@lightsofapollo.com>2012-09-19 11:11:16 -0700
commit0cac01e4243b112f3c0820c89d9de2bf38005c79 (patch)
tree1fc042f4d9b26f21f606e4dff15c7c70bab2f70b /lib/caldav/sax/dav_response.js
parent459e5b14f1868960e60c8fc358103cd6fbbaed7f (diff)
downloadjsCalDAV-0cac01e4243b112f3c0820c89d9de2bf38005c79.tar.gz
decouple ical-js will resolve #5
Diffstat (limited to 'lib/caldav/sax/dav_response.js')
-rw-r--r--lib/caldav/sax/dav_response.js23
1 files changed, 1 insertions, 22 deletions
diff --git a/lib/caldav/sax/dav_response.js b/lib/caldav/sax/dav_response.js
index 0957376..e257027 100644
--- a/lib/caldav/sax/dav_response.js
+++ b/lib/caldav/sax/dav_response.js
@@ -1,12 +1,9 @@
(function(module, ns) {
- if (typeof(ICAL) === 'undefined') {
- require('../../ical.js');
- }
-
var HTTP_STATUS = /([0-9]{3,3})/;
var Base = ns.require('sax/base');
+ var CalendarDataHandler = ns.require('sax/calendar_data_handler');
var TextHandler = Base.create({
name: 'text',
@@ -25,24 +22,6 @@
}
});
- var CalendarDataHandler = Base.create({
- name: 'calendar data',
-
- //don't add text only elements
- //to the stack as objects
- onopentag: null,
- onclosetag: null,
-
- //add the value to the parent
- //value where key is local tag name
- //and value is the text.
- ontext: function(data) {
- var handler = this.handler;
- this.current[this.currentTag[handler.tagField]] = ICAL.parse(data);
- }
- });
-
-
var HrefHandler = Base.create({
name: 'href',