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

Re : can.Control initialisation

$
0
0
Typically you would expect that when a Control is initialized the element is on the page already. I would recommend removing that code from your init and putting it in the code that calls new Portal.DataView. 

  1. if($('.latest-updates').length) { new Portal.DataView('.latest-updates', { ... }); }

Viewing all articles
Browse latest Browse all 3491

Trending Articles