Fallback to DummyImageContainer if no suitable ImageContainer found

This commit is contained in:
Niklas von Hertzen 2014-05-18 17:48:32 +03:00
parent 9ee87339a3
commit d6ed6c0194

View File

@ -47,6 +47,8 @@ ImageLoader.prototype.loadImage = function(imageData) {
return new LinearGradientContainer(imageData);
} else if (imageData.method === "gradient") {
return new WebkitGradientContainer(imageData);
} else {
return new DummyImageContainer(imageData);
}
};