equal
deleted
inserted
replaced
15 |
15 |
16 contributors: DS.attr({defaultValue: function() { return []; }}), |
16 contributors: DS.attr({defaultValue: function() { return []; }}), |
17 |
17 |
18 subjects: DS.attr({defaultValue: function() { return []; }}), |
18 subjects: DS.attr({defaultValue: function() { return []; }}), |
19 |
19 |
20 reflocs: DS.attr({defaultValue: function() { return []; }}), |
20 geoInfo: DS.attr({defaultValue: function() { return []; }}), |
21 |
21 |
22 mediaArray: DS.attr({defaultValue: function() { return []; }}), |
22 mediaArray: DS.attr({defaultValue: function() { return []; }}), |
23 |
23 |
24 encodedId: Ember.computed('id', function() { |
24 encodedId: Ember.computed('id', function() { |
25 return encodeURIComponent(this.get('id')); |
25 return encodeURIComponent(this.get('id')); |
37 }); |
37 }); |
38 if(mp3) { |
38 if(mp3) { |
39 res.unshift(mp3); |
39 res.unshift(mp3); |
40 } |
40 } |
41 return res; |
41 return res; |
|
42 }), |
|
43 |
|
44 reflocs: Ember.computed('geoInfo', function() { |
|
45 return this.get('geoInfo')['ref-locs']; |
42 }), |
46 }), |
43 |
47 |
44 addContributor: function(contrib_def) { |
48 addContributor: function(contrib_def) { |
45 var contributors = this.get('contributors'); |
49 var contributors = this.get('contributors'); |
46 if(_.findIndex(contributors, function(c) { return _.isEqual(c, contrib_def);}) < 0) { |
50 if(_.findIndex(contributors, function(c) { return _.isEqual(c, contrib_def);}) < 0) { |