appendTo() can somehow sort-of lose track of the element in question? #625

Closed
alanhogan opened this Issue Oct 25, 2012 · 2 comments

Projects

None yet

2 participants

@alanhogan

In this case, height is zero:

  $source.detach().appendTo($unit)
  window.console?.log? "AFTER DETACH & APPEND, height is: #{$source.height()}"

But in this case, height is as expected:

  srcID = $source[0].id
  $source.detach().appendTo($unit)
  $source = $("##{srcID}") if window.Zepto
  window.console?.log? "AFTER DETACH & APPEND, height is: #{$source.height()}"

(examples in coffeescript)

note .detach is defined as it is here, basically a .clone(), remove, return deal.

@mislav
Collaborator
mislav commented Nov 11, 2012

I can't see your code or your page, so I don't know what's going on. Can you try to reproduce as a JSfiddle or a failing test case in test/zepto.html?

@mislav
Collaborator
mislav commented Nov 25, 2012

Closed due to lack of information. If you want us to help detect a bug, please provide more concrete info!

@mislav mislav closed this Nov 25, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment