1 /* vi: set et sw=4 ts=4 si: */
3 * Copyright (c) 2012, Intel Corporation.
5 * This program is licensed under the terms and conditions of the
6 * Apache License, version 2.0. The full text of the Apache License is at
7 * http://www.apache.org/licenses/LICENSE-2.0
11 (function(win, app, Ember) {
12 app.Router.map(function() {
13 this.resource('all', {path: '/'});
16 app.AllRoute = Ember.Route.extend({
17 setupController: function(controller) {
20 if (app.library !== null) {
24 if (win.HoofbeatsLibrary) {
25 app.library = new win.HoofbeatsLibrary();
27 setTimeout(function() {
33 return app.MediaItem.findAll();
36 }(window, window.Hoofbeats, window.Ember));