jamesflorentino / nanoScrollerJS

A jQuery plugin that offers a simplistic way of implementing Lion OS scrollbars.
http://jamesflorentino.github.com/nanoScrollerJS/
MIT License
2.69k stars 502 forks source link

Cannot read property 'style' of undefined #214

Closed ghost closed 10 years ago

ghost commented 10 years ago

I'm using the latest version and don't know what I'm doing wrong. My html looks like this:

<div id="manage-path-container" class="nano animated fadeIn rounded-corners">
    <div id="manage-path-content" class="content">
        ...
    </div>
</div>

and I'm calling

$('.nano').nanoScroller(); 

and I added the CSS to my style.css.

The error is thrown at line 643, any ideas?

adam101 commented 10 years ago

In the latest version, I've prefixed the class names like 'content' => 'nano-content'. You should use the nano-content class. I'm going to update the readme.

ludalex commented 10 years ago

Don't forget to update the website too