-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #5487: Fix load issue with multiple same images #6170
Changes from all commits
b1d778e
5800e5e
4ba96bc
1dfe778
ca1592f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -212,8 +212,7 @@ oppia.factory('AssetsBackendApiService', [ | |
if (_isCached(filename)) { | ||
resolve(AudioFileObjectFactory.createNew( | ||
filename, assetsCache[filename])); | ||
} else if (!_isAssetCurrentlyBeingRequested(filename, | ||
ASSET_TYPE_AUDIO)) { | ||
} else { | ||
_fetchFile(explorationId, filename, ASSET_TYPE_AUDIO, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is there any difference in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @seanlip, has already covered this in his review! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Addressed. |
||
resolve, reject); | ||
} | ||
|
@@ -224,8 +223,7 @@ oppia.factory('AssetsBackendApiService', [ | |
if (_isCached(filename)) { | ||
resolve(ImageFileObjectFactory.createNew( | ||
filename, assetsCache[filename])); | ||
} else if (!_isAssetCurrentlyBeingRequested(filename, | ||
ASSET_TYPE_IMAGE)) { | ||
} else { | ||
_fetchFile(explorationId, filename, ASSET_TYPE_IMAGE, | ||
resolve, reject); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it make sense to combine this clause with the previous one? Ditto below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that would be better.