Skip to content

Commit b254ad1

Browse files
committed
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)