gatsby-background-image-es5
Advanced tools
Comparing version 0.9.15 to 0.9.16
@@ -197,3 +197,3 @@ "use strict"; | ||
(0, _forEach.default)(_context3 = this.imageRef).call(_context3, function (currentImageRef) { | ||
return currentImageRef.onload = null; | ||
return !!currentImageRef && (currentImageRef.onload = null); | ||
}); | ||
@@ -200,0 +200,0 @@ } else { |
@@ -177,5 +177,5 @@ "use strict"; | ||
var hasPictureRef = function hasPictureRef(imageRef) { | ||
return (0, _SimpleUtils.isString)(imageRef) || !!imageRef.currentSrc; | ||
return (0, _SimpleUtils.isString)(imageRef) || !!imageRef && !!imageRef.currentSrc; | ||
}; | ||
exports.hasPictureRef = hasPictureRef; |
@@ -70,3 +70,3 @@ "use strict"; | ||
return props[prop] && (0, _isArray.default)(props[prop]) && (0, _some.default)(_context = props[prop]).call(_context, function (image) { | ||
return typeof image.media !== 'undefined'; | ||
return !!image && typeof image.media !== 'undefined'; | ||
}); | ||
@@ -73,0 +73,0 @@ }; |
{ | ||
"name": "gatsby-background-image-es5", | ||
"version": "0.9.15", | ||
"version": "0.9.16", | ||
"description": "Lazy-loading React background-image component with optional support for the blur-up effect. Transpiled to ES5.", | ||
@@ -48,3 +48,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "d4c1f485c4041b022ef296e69178415f449239e9" | ||
"gitHead": "39034b454153e78ef0582b68c305c81dfb2ac888" | ||
} |
@@ -663,3 +663,3 @@ <h1 align="center"> | ||
_For anything you may think necessary tell me by opening an issue or a PR : )!_ | ||
_For anything you may think necessary tell me by opening an issue or a PR : )!_ | ||
@@ -666,0 +666,0 @@ ## Acknowledgements |
95569