@odopod/odo-affix
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -10,4 +10,2 @@ (function (global, factory) { | ||
var babelHelpers = {}; | ||
var classCallCheck = function (instance, Constructor) { | ||
@@ -37,10 +35,2 @@ if (!(instance instanceof Constructor)) { | ||
babelHelpers; | ||
/** | ||
@@ -312,2 +302,3 @@ * @fileoverview Emulates `position:sticky` to make an element fixed position | ||
var scrollTop = this.element.scrollTop; | ||
this.unstick(); | ||
@@ -438,3 +429,3 @@ this.reset(); | ||
key: 'uiOverlap', | ||
get: function get() { | ||
get: function get$$1() { | ||
if (this._customOverlap) { | ||
@@ -452,3 +443,3 @@ return this._customOverlap(); | ||
, | ||
set: function set(fn) { | ||
set: function set$$1(fn) { | ||
this._customOverlap = fn; | ||
@@ -465,3 +456,3 @@ this.update(); | ||
key: 'top', | ||
get: function get() { | ||
get: function get$$1() { | ||
return this._top - this._overlap; | ||
@@ -477,3 +468,3 @@ } | ||
key: 'bottom', | ||
get: function get() { | ||
get: function get$$1() { | ||
return this._bottom - this._marginBottom; | ||
@@ -480,0 +471,0 @@ } |
{ | ||
"name": "@odopod/odo-affix", | ||
"description": "Makes an element fixed position while its within a container.", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"main": "dist/odo-affix.js", | ||
@@ -16,3 +16,3 @@ "odoModule": "src/affix.js", | ||
"@odopod/odo-scroll-animation": "^1.0.1", | ||
"@odopod/odo-window-events": "^1.0.1" | ||
"@odopod/odo-window-events": "^1.0.2" | ||
}, | ||
@@ -19,0 +19,0 @@ "homepage": "https://github.com/odopod/code-library/tree/master/packages/odo-affix", |
@@ -280,3 +280,3 @@ /** | ||
update() { | ||
const scrollTop = this.element.scrollTop; | ||
const { scrollTop } = this.element; | ||
this.unstick(); | ||
@@ -283,0 +283,0 @@ this.reset(); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
71657
8
762