diff options
Diffstat (limited to 'lib/webcals/sax.js')
-rw-r--r-- | lib/webcals/sax.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/webcals/sax.js b/lib/webcals/sax.js index d6f7592..8a24ecf 100644 --- a/lib/webcals/sax.js +++ b/lib/webcals/sax.js @@ -2,7 +2,7 @@ var Responder = ns.require('responder'); - if (typeof(sax) === 'undefined') { + if (typeof(window) === 'undefined') { Parser.sax = require('sax'); } else { Parser.sax = sax; @@ -215,6 +215,6 @@ }.apply( this, (this.Webcals) ? - [Webcals('xml_parser'), Webcals] : + [Webcals('sax'), Webcals] : [module, require('./webcals')] )); |