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

Querying Document Fragment

$
0
0
Is it possible to query a document fragment and instantiate a can.Control on a specific element within and then add the whole fragment to the DOM?
  1. frag = can.view(steal.config().root.join('myapp/views/stuff').path, {});
    new MyControl(can.$(frag).find('#someEl'), {});

Doesn't seem so because "can.$(frag).find('#someEl')" does not return the DOM element.

Is it possible to query document fragments?

Thoughts?


Thanks.

Viewing all articles
Browse latest Browse all 3491

Trending Articles