Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
only query value from builder when value is undefined
  • Loading branch information
dodo committed Nov 9, 2013
1 parent 31ca0a4 commit a821195
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xml.coffee
Expand Up @@ -126,7 +126,7 @@ class Tag extends EventEmitter

attr: (key, value) =>
if typeof key is 'string'
if not value?
if value is undefined
attr = @builder?.query('attr', this, key)
# attr is not defined if attr is undefined
# attr doesn't have a value when attr is null
Expand Down

0 comments on commit a821195

Please sign in to comment.