Where does registerModules() look for modules?

72 views
Skip to first unread message

Scott Beeson

unread,
May 29, 2014, 11:29:48 AM5/29/14
to terrific...@googlegroups.com
I must be overlooking it...

Leo Zurbriggen

unread,
Jun 2, 2014, 2:21:31 AM6/2/14
to terrific...@googlegroups.com
You can set your context as the first argument when initializing your application:
var app = new Tc.Application($('html'), {});
app.registerModules();

Am Donnerstag, 29. Mai 2014 17:29:48 UTC+2 schrieb Scott Beeson:
I must be overlooking it...

Marc Diethelm

unread,
Aug 29, 2014, 1:08:31 PM8/29/14
to terrific...@googlegroups.com
Yes and since you almost certainly wont be using modules in the HEAD (although you can) it's slightly more efficient to just search for modules in the BODY.

var app = new Tc.Application($('body'), {});
Reply all
Reply to author
Forward
0 new messages