javascript - Uncaught reference error: slider is not defined -
i'm trying implement joss benner's fix shown here. need implement code:
slider.setopts = function(opts) { (var opt in opts) { vars[opt] = opts[opt]; } slider.setup(); } slider.getopts = function() { return vars; }
i've tried fiddle here,
uncaught referenceerror: slider not defined
in console. not i'm doing. other commenters seem able implement no problem.
could explain meaning behind code... slider
? class? function? should place above code add .setopts
function?
he wrote
i added these public methods flexslider
to so, have add lines of code inside jquery.flexslider.js
-file , not in js-file did in fiddle. error tells problem is. , in case, slider
in fact not defined, because slider
-variable being declared inside codeblock of jquery.flexslider.js
means, there no reference variable outside of block.
the public methods start in line 426, add code there.
Comments
Post a Comment