Skip to content

Commit

Permalink
fetchQueue null check
Browse files Browse the repository at this point in the history
  • Loading branch information
jhudson8 authored and mbjorkegren committed Mar 25, 2014
1 parent 3bc07d9 commit 6f7e055
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/loading.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,11 @@ function fetchQueue(options, $super) {
// Handle callers that do not pass in a super class and wish to implement their own
// fetch behavior
if ($super) {
$super.call(this, options);
var promise = $super.call(this, options);
this.fetchQueue && this.fetchQueue._promise = promise;
return promise;
} else {
return options;
}
return options;
} else {
Expand Down

0 comments on commit 6f7e055

Please sign in to comment.