Skip to content

Commit ea4ff84

Browse files
committed
Update comments
1 parent 46164ad commit ea4ff84

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎src/systems/material.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export var System = registerSystem('material', {
3030
*
3131
* @param {string|Element} src - URL or element
3232
* @param {object} data - Relevant texture properties
33-
* @param {function} cb - Callback that receives the texture, or null if loading failed
33+
* @param {function} cb - Callback that receives the texture, or null if image loading failed
3434
*/
3535
loadTexture: function (src, data, cb) {
3636
this.loadTextureSource(src, function sourceLoaded (source) {
@@ -48,7 +48,7 @@ export var System = registerSystem('material', {
4848
* Determine whether `src` is an image or video. Then try to load the asset, then call back.
4949
*
5050
* @param {string|Element} src - URL or element.
51-
* @param {function} cb - Callback that receives the texture source, or null if loading failed.
51+
* @param {function} cb - Callback that receives the texture source, or null if image loading failed.
5252
*/
5353
loadTextureSource: function (src, cb) {
5454
var self = this;

‎src/utils/src-loader.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ function checkIsImage (src, onResult) {
142142
return;
143143
}
144144

145-
// Check file extension first to avoid HEAD request for images.
145+
// Check file extension first to avoid HEAD request for common image extensions.
146146
ext = getExtension(src);
147147
if (IMAGE_EXTENSIONS.indexOf(ext) !== -1) {
148148
onResult(true);

0 commit comments

Comments
 (0)