// our main requirejs function requirejs(['path/to/indexview'], function (IndexView) { var AppRouter = Backbone.Router.extend({ initialize: function () { // bind our IndexView to the router this.IndexView = new IndexView(); } }); // start the app var app = new AppRouter(); });
var view = new IndexView(); //print view class console.log(view.className);
index: function() { _this.loadView(new IndexView()); } //,
Router.prototype.index = Router.view = new IndexView();
currentView = new IndexView();
/** * 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 JHelpIndexNavigator(HelpSet hs, String name, String label, URL data) throws InvalidNavigatorViewException { super(new IndexView(hs, name, label, createParams(data))); }