Clean up more whitespace
This commit is contained in:
Родитель
7e1c9a7f58
Коммит
49d9fe4d37
|
@ -15,18 +15,23 @@ HighFidelity.Episode = DS.Model.extend({
|
||||||
isPlaying: false,
|
isPlaying: false,
|
||||||
|
|
||||||
isDownloaded: function() {
|
isDownloaded: function() {
|
||||||
return this.get('audioFile') !== null && this.get('audioFile') !== undefined;
|
return (this.get('audioFile') !== null &&
|
||||||
|
this.get('audioFile') !== undefined);
|
||||||
}.property('audioFile')
|
}.property('audioFile')
|
||||||
});
|
});
|
||||||
|
|
||||||
// probably should be mixed-in...
|
// probably should be mixed-in...
|
||||||
HighFidelity.Episode.reopen({
|
HighFidelity.Episode.reopen({
|
||||||
attributes: function(){
|
attributes: function(){
|
||||||
var model = this;
|
var model = this;
|
||||||
return Ember.keys(this.get('data')).map(function(key){
|
return Ember.keys(this.get('data')).map(function(key){
|
||||||
return Ember.Object.create({ model: model, key: key, valueBinding: 'model.' + key });
|
return Ember.Object.create({
|
||||||
});
|
model: model,
|
||||||
}.property()
|
key: key,
|
||||||
|
valueBinding: ' model.' + key
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}.property()
|
||||||
});
|
});
|
||||||
|
|
||||||
// delete below here if you do not want fixtures
|
// delete below here if you do not want fixtures
|
||||||
|
|
|
@ -107,12 +107,16 @@ HighFidelity.Podcast = DS.Model.extend({
|
||||||
|
|
||||||
// probably should be mixed-in...
|
// probably should be mixed-in...
|
||||||
HighFidelity.Podcast.reopen({
|
HighFidelity.Podcast.reopen({
|
||||||
attributes: function(){
|
attributes: function(){
|
||||||
var model = this;
|
var model = this;
|
||||||
return Ember.keys(this.get('data')).map(function(key){
|
return Ember.keys(this.get('data')).map(function(key){
|
||||||
return Ember.Object.create({ model: model, key: key, valueBinding: 'model.' + key });
|
return Ember.Object.create({
|
||||||
});
|
model: model,
|
||||||
}.property()
|
key: key,
|
||||||
|
valueBinding: ' model.' + key
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}.property()
|
||||||
});
|
});
|
||||||
|
|
||||||
// delete below here if you do not want fixtures
|
// delete below here if you do not want fixtures
|
||||||
|
|
Загрузка…
Ссылка в новой задаче