richardscarrott / jquery-ui-carousel

jQuery RS Carousel is a responsive and touch-enabled carousel written on top of jQuery and the jQuery UI Widget Factory providing a full and familiar API in less than 2.6kB minified and gzipped.
http://richardscarrott.github.io/jquery-ui-carousel/
192 stars 56 forks source link

Uncaught TypeError var _super = $.Widget.prototype; #67

Closed esterkin closed 11 years ago

esterkin commented 11 years ago

Hi I followed the tutorial, included all the .js and .css files from the main page and I get a

Uncaught TypeError. Cannot read property 'prototype' of undefined

in jquery.rs.carousel.js

Is there more to get it working then what's included in the tutorial?

Any help would be appreciated!

richardscarrott commented 11 years ago

I'd imagine you've not included all the dependencies, namely:

<script type="text/javascript" src="vendor/jquery.js"></script>
<script type="text/javascript" src="vendor/jquery.ui.widget.js"></script>
esterkin commented 11 years ago

Putting those two js files in the body instead of head solved the issue.