$()

in js/app.js [24:47]


$(function () {
	'use strict';


  var apiRootUrl = window.location.search.substr(1);
  if( !apiRootUrl ){
    $("body > *").hide();
    $("#api-root").show();
    return;
  }
  $("#api-root").hide();

  $("#target-info .target-url").text(apiRootUrl);

	// Create our global collection of **Todos**.
	app.todos = new app.Todos();
  app.todos.url = apiRootUrl;

	app.TodoRouter = new app.TodoRouter();
	Backbone.history.start();

	// kick things off by creating the `App`
	new app.AppView();
});