garand / sticky

jQuery Plugin for Sticky Objects
Other
3.3k stars 1.06k forks source link

Uncaught type error #179

Open kaspar-allenbach opened 9 years ago

kaspar-allenbach commented 9 years ago

Hi I receive this message when using sticky:

`Uncaught TypeError: Cannot read property 'top' of undefined?

The line generating this error is: newStop = s.stopper != null ? $(s.stopper).position().top + $(s.stopper).height() : null,

The sticky plugin does wrap my element with my-element-sticky-wrapperso it fires correctly. What's the issue here?