Here's actually how I ran into this. I was working on an app that was using Colorbox. When I inserted a can.Component tag into the content to be displayed in the Colorbox, I noticed that the "inserted" was being fired twice. When I looked at what Colorbox was doing, I saw that it was manipulated the DOM to be displayed within it and was causing the double insertion as it moved the DOM elements around.
↧