@polymer/iron-fit-behavior
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -238,8 +238,17 @@ /** | ||
attached: function() { | ||
/** | ||
* True if the component is RTL. | ||
* @private | ||
*/ | ||
get _isRTL() { | ||
// Memoize this to avoid expensive calculations & relayouts. | ||
// Make sure we do it only once | ||
if (typeof this._isRTL === 'undefined') { | ||
this._isRTL = window.getComputedStyle(this).direction == 'rtl'; | ||
if (typeof this._memoizedIsRTL === 'undefined') { | ||
this._memoizedIsRTL = window.getComputedStyle(this).direction == 'rtl'; | ||
} | ||
return this._memoizedIsRTL; | ||
}, | ||
/** @override */ | ||
attached: function() { | ||
this.positionTarget = this.positionTarget || this._defaultPositionTarget; | ||
@@ -261,2 +270,3 @@ if (this.autoFitOnAttach) { | ||
/** @override */ | ||
detached: function() { | ||
@@ -263,0 +273,0 @@ if (this.__deferredFit) { |
@@ -27,3 +27,3 @@ { | ||
}, | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"main": "iron-fit-behavior.js", | ||
@@ -30,0 +30,0 @@ "author": "The Polymer Authors", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
45190
871
1