Skip to content
This repository was archived by the owner on Jun 11, 2024. It is now read-only.

Commit f54a8cd

Browse files
committed
For some reason textureType can be undefined, seems okay
1 parent 793acd9 commit f54a8cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/themeroller.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ ThemeRoller.prototype = {
218218

219219
_textureUrl: function( color, textureType, opacity ) {
220220
var image, texture;
221-
if ( textureType === "flat" ) {
221+
if ( !textureType || textureType === "flat" ) {
222222
return "";
223223
}
224224
texture = textures[ textureType ];

0 commit comments

Comments
 (0)