Skip to content

Commit

Permalink
#1329 Remved redundant code.
Browse files Browse the repository at this point in the history
  • Loading branch information
oleh-maikovych committed Jun 11, 2019
1 parent 00047d0 commit e3f1f54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ export const IronFitBehavior = {
// Memoize this to avoid expensive calculations & relayouts.
// Make sure we do it only once
if (typeof this._isRTL === 'undefined') {
this._isRTL = false; // window.getComputedStyle(this).direction == 'rtl';
this._isRTL = window.getComputedStyle(this).direction == 'rtl';
}

this.positionTarget = this.positionTarget || this._defaultPositionTarget;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,18 +230,15 @@ class ApplyShim {
rule['selector'] = ':host > *';
}
}

/**
* @param {string} cssText
* @param {!StyleNode} rule
* @return {string}
*/
transformCssText(cssText, rule) {
const func1 = function (matchText, propertyName, valueProperty, valueMixin) {
return this._produceCssProperties(matchText, propertyName, valueProperty, valueMixin, rule);
}.bind(this);
// produce variables
cssText = cssText.replace(VAR_ASSIGN, func1);
cssText = cssText.replace(VAR_ASSIGN, (matchText, propertyName, valueProperty, valueMixin) =>
this._produceCssProperties(matchText, propertyName, valueProperty, valueMixin, rule));
// consume mixins
return this._consumeCssProperties(cssText, rule);
}
Expand Down

0 comments on commit e3f1f54

Please sign in to comment.