garand / sticky

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

Fix init on jquery multiple element #233

Closed PVGrad closed 8 years ago

PVGrad commented 8 years ago

If initiating like that *$('[sticky]').sticky(); and Jquery selector returns more that 1 objects, then options from each next object rewrites prev. one. And if init inside of this.each()** loop - all work fine.