Fix jshint errors
This commit is contained in:
Родитель
11dc37f96d
Коммит
93e9f48b4a
|
@ -1,10 +1,12 @@
|
|||
'use strict';
|
||||
|
||||
import Ember from 'ember';
|
||||
|
||||
const NUMBER_OF_PODCASTS_TO_GET = 1000;
|
||||
|
||||
export default function getRSS(url, callback) {
|
||||
console.log('GETTING RSS');
|
||||
return new Promise(function(resolve, reject) {
|
||||
return new Ember.RSVP.Promise(function(resolve, reject) {
|
||||
var jsonpCallback = EmberHifi.isPackaged ? '' : '&callback=?';
|
||||
|
||||
$.ajax({
|
||||
|
@ -36,4 +38,4 @@ export default function getRSS(url, callback) {
|
|||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
}
|
||||
|
|
|
@ -61,7 +61,7 @@ export default DS.Model.extend({
|
|||
}
|
||||
});
|
||||
|
||||
request.addEventListener('progress', function(event) {
|
||||
request.addEventListener('progress', function() {
|
||||
console.info('eventProgress', _this.get('_chunkCount'));
|
||||
localforage.setItem('ep:' + _this.get('id') +
|
||||
_this.get('_chunkCount'), request.response)
|
||||
|
@ -88,7 +88,7 @@ export default DS.Model.extend({
|
|||
_this.incrementProperty('_chunkCount');
|
||||
});
|
||||
|
||||
request.addEventListener('error', function(event) {
|
||||
request.addEventListener('error', function() {
|
||||
window.alert('Error downloading this episode. Please try again.');
|
||||
|
||||
// _this.trigger('download:cancel');
|
||||
|
@ -118,7 +118,7 @@ export default DS.Model.extend({
|
|||
var chunkCount = this.get('_chunkCount');
|
||||
var _this = this;
|
||||
|
||||
return new Promise(function(resolve) {
|
||||
return new Ember.RSVP.Promise(function(resolve) {
|
||||
function _walkChunks(chunkID) {
|
||||
if (chunkID === undefined) {
|
||||
chunkID = 0;
|
||||
|
|
Загрузка…
Ссылка в новой задаче