Add Intel copyright header.
[profile/ivi/cowhide.git] / examples / calf / javascripts / app / models / album.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 Album = Ember.Object.extend({
14         id: null,
15         artist: null,
16         name: null,
17         year: null
18     });
19
20     Album.reopenClass({
21         find: function(artist) {
22             return app.Store.getAlbums(artist);
23         }
24     });
25
26     app.Album = Album;
27 })(window.Calf, window.Ember, window._);