1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Fix variable usage (SonarCloud)

This commit is contained in:
Dmitry Lyzo 2020-08-29 20:10:23 +03:00
parent f915ecd400
commit fad3b562ea

View file

@ -10,7 +10,7 @@
function polyfillProperty(name) { function polyfillProperty(name) {
if (!(name in elem.style)) { if (!(name in elem.style)) {
for (const vendorName of vendorProperties[name] || []) { (vendorProperties[name] || []).every((vendorName) => {
if (vendorName in elem.style) { if (vendorName in elem.style) {
console.debug(`polyfill '${name}' with '${vendorName}'`); console.debug(`polyfill '${name}' with '${vendorName}'`);
@ -19,9 +19,11 @@
set: function (val) { this[vendorName] = val; } set: function (val) { this[vendorName] = val; }
}); });
break; return false;
} }
}
return true;
});
} }
} }