File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments