Add Intel copyright header.
[profile/ivi/cowhide.git] / examples / calf / javascripts / app / models / song.js
1 /*
2  * Copyright (c) 2012, Intel Corporation.
3  *
4  * This program is licensed under the terms and conditions of the
5  * Apache License, version 2.0.  The full text of the Apache License is at
6  * http://www.apache.org/licenses/LICENSE-2.0
7  *
8  */
9
10 (function(app, Ember, _) {
11     'use strict';
12
13     var Song = Ember.Object.extend({
14         id: null,
15         title: null,
16         duration: null
17     });
18
19     Song.reopenClass({
20         find: function(album) {
21             return app.Store.getSongs(album);
22         }
23     });
24
25     app.Song = Song;
26 })(window.Calf, window.Ember, window._);