Permalink
Browse files

prevent up from returning undefined

  • Loading branch information...
1 parent a821195 commit 9cecfe1f8df6bd2c014588f4269ace330d7aeda6 @dodo committed Nov 9, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/xml.coffee
View
3 src/xml.coffee
@@ -188,8 +188,9 @@ class Tag extends EventEmitter
up: (opts = {}) =>
opts.end ?= true
+ parent = @parent # might get removed
@end arguments... if opts.end
- @parent
+ parent
show: () =>
@hidden = no

0 comments on commit 9cecfe1

Please sign in to comment.