diff --git a/src/style_manager/view/PropertyView.js b/src/style_manager/view/PropertyView.js index 9249a13f3..dd825f210 100644 --- a/src/style_manager/view/PropertyView.js +++ b/src/style_manager/view/PropertyView.js @@ -1,7 +1,7 @@ import Backbone from 'backbone'; import { bindAll, isArray, isUndefined, debounce } from 'underscore'; import { camelCase } from 'utils/mixins'; -import { includes } from 'underscore'; +import { includes, each } from 'underscore'; const clearProp = 'data-clear-style'; @@ -462,7 +462,7 @@ module.exports = Backbone.View.extend({ trg.view.$el[0].parentNode ) { const styles = window.getComputedStyle(trg.view.$el[0].parentNode); - Object.entries(requiresParent).forEach(([property, values]) => { + each(requiresParent, (values, property) => { stylable = stylable && styles[property] && includes(values, styles[property]); });