Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : Moving DOM Elements Containing Components

$
0
0
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.

Viewing all articles
Browse latest Browse all 3491

Trending Articles