Reputation: 3250
I'm putting together a jQuery plugin using the nested namespace pattern, which I've based on the template from Addy Osmani's book.
Its a fairly simple gallery plugin and all works well, except when I try to initialise the plugin and overwrite the default options:
$(".m-gallery").vPossible_vGallery({
scrolls: 3,
scrollSpeed: 200,
indexable: false,
autoplay: true,
rotateSpeed: 6000
});
These don't override the defaults. I've not used this pattern before so not sure if it's something I've done or if it's an error with the template. More likely the former...
Here's a link to it in action...
It's not giving any errors, and I don't completely understanding how this works, so it's difficult for me to figure out where to start trying to debug the issue.
Thanks in advance for any help!
Upvotes: 0
Views: 109
Reputation: 2236
There seems to be some confusion between myFuntionParam
and option
arguments. At first glance replacing any instances of the option
argument with myFunctionParam
should fix this.
Upvotes: 2