Speculative fix for Chrome bug #73395

This commit is contained in:
Ian Gulliver
2015-03-29 16:10:22 -07:00
parent edf4588dff
commit 00789467da

View File

@@ -382,6 +382,10 @@ CameraGrid.prototype.findMinimumResolution_ = function(tileWidth, tileHeight) {
*/
CameraGrid.prototype.deletePreviousSiblings_ = function(element) {
while (element.previousSibling) {
if (element.previousSibling.nodeName.toUpperCase() == 'IMG') {
// Work around Chrome bug #73395
element.previousSibling.src = '';
}
element.parentNode.removeChild(element.previousSibling);
}
};