scrolly.js understanding a simple function code
Hey guys , the below is a parallax scroll pluggin : a rather simple one :
from line 71 - 77 : what are these lines of code really doing ?? (i hv pasted the code below)
- $.fn[pluginName] = function ( options ) {
- return this.each(function () {
- if (!$.data(this, 'plugin_' + pluginName)) {
- $.data(this, 'plugin_' + pluginName, new Plugin( this, options ));
- }
- });
- };
i have really been struggling to get my head around this ! , Like really , what is it doing ?
Thanks .