Skip to content

Commit

Permalink
use double quotes, project standard (or so it looks like?)
Browse files Browse the repository at this point in the history
  • Loading branch information
Contra authored and Leonidas-from-XIV committed Sep 22, 2011
1 parent f7436ce commit e77e346
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/xml2js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ events = require 'events'

# Underscore has a nice function for this, but we try to go without dependencies
isEmpty = (thing) ->
return typeof thing == 'object' && thing? && Object.keys(thing).length == 0
return typeof thing is "object" && thing? && Object.keys(thing).length is 0

class exports.Parser extends events.EventEmitter
constructor: (opts) ->
Expand Down Expand Up @@ -113,10 +113,10 @@ class exports.Parser extends events.EventEmitter
s[charkey] += text

parseString: (str, cb) =>
if cb? and typeof cb is 'function'
@on 'end', (result) ->
if cb? and typeof cb is "function"
@on "end", (result) ->
cb null, result
@on 'error', (err) ->
@on "error", (err) ->
cb err

@saxParser.write str.toString()
Expand Down

0 comments on commit e77e346

Please sign in to comment.