Skip to content

Commit fec5be8

Browse files
committed
rename _outer and _inner to elOuter and elInner for clarity
1 parent b6f60fa commit fec5be8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/components/Parallax.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ export default class Parallax extends Component {
3333
}
3434
// create a new parallax element and save the reference
3535
this.element = ParallaxScrollListener.createElement({
36-
_inner: this._inner,
37-
_outer: this._outer,
36+
elInner: this._inner,
37+
elOuter: this._outer,
3838
props: this.props,
3939
});
4040
}

src/libs/ParallaxScroller.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ const ParallaxScroller = (function() {
136136
// calculating them on every frame -- instead these values
137137
// are cached on the element to access later when determining
138138
// the element's position and offset.
139-
const el = element._outer;
139+
const el = element.elOuter;
140140
const rect = el.getBoundingClientRect();
141141
const elHeight = el.offsetHeight;
142142
const elWidth = el.offsetWidth;
@@ -267,7 +267,7 @@ const ParallaxScroller = (function() {
267267
const offsets = getParallaxOffsets(element.offsets, percentMoved, slowerScrollRate);
268268

269269
// Apply styles
270-
const el = element._inner;
270+
const el = element.elInner;
271271
el.style.cssText =
272272
`will-change:transform;
273273
position:relative;
@@ -277,7 +277,7 @@ const ParallaxScroller = (function() {
277277
function _resetStyles(element) {
278278
// Resets any styles that may be left over when
279279
// resizing from desktop to mobile apply styles
280-
const el = element._inner;
280+
const el = element.elInner;
281281
el.style.cssText =
282282
`will-change:none;
283283
position:relative;

0 commit comments

Comments
 (0)