How can I run “._openclose()” in the following swatchbook function for example?
http://tympanus.net/Tutorials/SwatchBook/index3.html
I tried stuff like:
$( '#sb-container' ).swatchbook = function () {
this._openclose()
}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There’s lots of useful information in the documentation for this plugin on this page. The jQuery stuff is towards the bottom.
Without having used the plugin, I’m not sure how it works exactly but I can see right off that your ‘this’ is not a jQuery object. Try:
OR
_self is declared as the variable ‘this’ in the plugin: