Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJoseph Knoll
20,118 PointsPossible error with wmuSlider code challenge
In Responsive Slider Plugin code challenge, there seems to be an error in the validation.
the first task 1/4, we are asked to include jquery.wmuslider
The only acceptable spelling that satisfied the task is to spell it out in all lower case, as "wmuslider"
The class is named "wmuSlider" with a capital "S", and when we are asked in 4/4 to call wmuslider on wmuSlider class, the only code that satisfies the challenge is:
$(".wmuSlider").wmuSlider(options);
To me it seems like this is an error. Because we included this at src="jquery.wmuslider.js", shouldn't the call be made like this:
$("".wmuSlider").wmuslider(options);
without the capital "S" in the call? Am I missing something, or is this just an error in how the challenge is validating?
1 Answer
Kevin Korte
28,149 PointsNo, the way treehouse is, is correct.
You are calling the function wmuSlider. The file name can be called anything, it doesn't change the name of the function inside the file though.
Treehouse doesn't show you the code inside the jquery.wmuslider.js file you link to, but if you actually look at the code on github you can see the function is named wmuSlider, which is why it you have to capitalize the S when you call it.