jstoudt / enscroll

A jQuery plugin for custom scrollbars
http://enscrollplugin.com
Other
73 stars 46 forks source link

enscroll() not getting called from the js file :( #62

Closed himanshuchaudhary closed 8 years ago

himanshuchaudhary commented 8 years ago

$(document).ready(function() { console.log("Hi"); $('.scrollbox').enscroll(); });

Hi is getting printed but encroll(); not getting called. Also... I am using the css class for ng-repeat.. and the values which are repeated are dynamic..

{{comment.commentsDate}} at {{comment.commentsTime}}
{{comment.comments | limitTo:commentLength}} ...(Read more) (Read less)
jstoudt commented 8 years ago

@himanshuchaudhary If you are using angular, angular loads a version of jQuery which may not have all the dependencies required by enscroll. If you load the full version of jQuery before angular, angular will use that version of jQuery instead of loading jqLite.

If this is true, you should be seeing something in the dev tool's console when calling enscroll as above.