Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b254ad1

Browse files
add public method to get elements from the controller
1 parent a13b66e commit b254ad1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

‎src/libs/ParallaxController.js‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,14 @@ function ParallaxController() {
315315
* -------------------------------------------------------
316316
*/
317317

318+
/**
319+
* Gets the parallax elements in the controller
320+
* @return {array} parallax elements
321+
*/
322+
this.getElements = function() {
323+
return elements;
324+
};
325+
318326
/**
319327
* Creates a new parallax element object with new id
320328
* and options to store in the 'elements' array.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /