render: function() { $.getJSON("url/to/aggregated/data", function(data) { var favorites = new Favorites(data.favorites); var feed = new Feed(data.feed); var account = new Account(data.account); new FavoritesView({el: $A.el('#nm'), collection: favorites); new FeedView({el: $A.el('#at_view'), model: feed); new AccountView({model: account}); }); }
/** * Creates an Index navigator with explicit arguments. Note that this should not throw * an InvalidNavigatorViewException since we are implicitly passing the type. * * @param hs HelpSet * @param name The name identifying this HelpSet. * @param label The label to use (for this locale). * @param data The "data" part of the parameters, a URL location of the TOC data. */ public JHelpFavoritesNavigator(HelpSet hs, String name, String label, URL data) throws InvalidNavigatorViewException { super(new FavoritesView(hs, name, label, createParams(data))); }