File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -34,5 +34,5 @@ Download.prototype.getDownloadedState = function()
3434} ;
3535Download . prototype . getDownloadedFailedState = function ( )
3636{
37- return new DownloadedFailedState ( this ) ;
37+ return new DownloadFailedState ( this ) ;
3838} ;
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ DownloadPausedState.prototype.pause = function(){
1212 throw new Error ( "You can't pause a paused download!" ) ;
1313} ;
1414DownloadPausedState . prototype . fail = function ( ) {
15- this . oDownload . setState ( this . oDownload . getDownloadFailedState ( ) ) ;
15+ this . oDownload . setState ( this . oDownload . getDownloadedFailedState ( ) ) ;
1616 console . log ( "Download has failed!" ) ;
1717} ;
1818DownloadPausedState . prototype . finish = function ( ) {
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ DownloadingState.prototype.pause = function(){
1212 console . log ( "Pause download!" ) ;
1313} ;
1414DownloadingState . prototype . fail = function ( ) {
15- this . oDownload . setState ( this . oDownload . getDownloadFailedState ( ) ) ;
15+ this . oDownload . setState ( this . oDownload . getDownloadedFailedState ( ) ) ;
1616 console . log ( "Download has failed!" ) ;
1717} ;
1818DownloadingState . prototype . finish = function ( ) {
You can’t perform that action at this time.
0 commit comments