Skip to content

Commit

Permalink
Replace OR with AND operator
Browse files Browse the repository at this point in the history
Changed the operators in flexboxIE.js and flexboxOld.js. This resolves issues in pages which don't have a display attribute.

Closes #70
  • Loading branch information
tintin1343 committed Mar 7, 2016
1 parent ae4a0d7 commit d3c0d13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/plugins/flexboxIE.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const properties = Object.keys(alternativeProps).reduce((result, prop) => {

export default function flexboxIE({ property, value, styles, browserInfo: { browser, version }, prefix: { css }, keepUnprefixed }) {
if (
(properties[property] || property === 'display' && value.indexOf('flex') > -1) &&
(properties[property] && property === 'display' && value.indexOf('flex') > -1) &&
(
(browser === 'ie_mob' || browser === 'ie') && version == 10)
) {
Expand Down
2 changes: 1 addition & 1 deletion modules/plugins/flexboxOld.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const properties = Object.keys(alternativeProps).concat(otherProps).reduce((resu

export default function flexboxOld({ property, value, styles, browserInfo: { browser, version }, prefix: { css }, keepUnprefixed }) {
if (
(properties[property] || property === 'display' && value.indexOf('flex') > -1) &&
(properties[property] && property === 'display' && value.indexOf('flex') > -1) &&
(
browser === 'firefox' && version < 22 ||
browser === 'chrome' && version < 21 ||
Expand Down

0 comments on commit d3c0d13

Please sign in to comment.