Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • That's good advice, but why does the first example not work, but the second example does? Commented Jun 27, 2013 at 0:15
  • 2
    because the first example removes the .question and .navigation elements from the dom which detaches the event listeners, and the second example does not because only the inner content of these elements are replaced Commented Jun 27, 2013 at 0:17
  • @Alp Thanks a lot, that makes sense. Yeah I'm using my second example, I was just wondering why the first one wouldn't work but that makes sense now. Thanks a lot for your time, I appreciate it! Commented Jun 27, 2013 at 0:21