Add Intel copyright header.
[profile/ivi/cowhide.git] / examples / hoofbeats / javascripts / resolvers / dummy.js
1 /* vi: set et sw=4 ts=4 si: */
2 /*
3  * Copyright (c) 2012, Intel Corporation.
4  *
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
8  *
9  */
10
11 (function(win, $) {
12     var dummyResolver = function() {
13         return {
14             name: function() { return "DummyResolver"; },
15
16             getArtist: function(q) {
17                 return new $.Deferred().resolve({
18                     name: 'Regina Spektor'
19                 });
20             }
21         };
22     };
23
24     win.DummyResolver = new dummyResolver();
25 }(window, jQuery));