Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$ is not a function #288

Open
Anke opened this issue Jul 4, 2017 · 2 comments
Open

$ is not a function #288

Anke opened this issue Jul 4, 2017 · 2 comments

Comments

@Anke
Copy link

Anke commented Jul 4, 2017

I'm getting an error "$ is not a function in slidebars.min.js:11.32 ". I read #238 but don't really understand much of what is being said.

I'm using

<script type="text/javascript" src="assets/jquery/slidebars2.0/slidebars.min.js"></script>
<script>
( function ( $ ) {
        // Initialize Slidebars
        var controller = new slidebars();
        controller.init();

        // Toggle Slidebars
        $( '.toggle-id-1' ).on( 'click', function ( event ) {
          // Stop default action and bubbling
          event.stopPropagation();
          event.preventDefault();

          // Toggle the Slidebar with id 'id-1'
          controller.toggle( 'id-1' );
        } );
} ) ( jQuery );
</script>

with jQuery 1.11.3 and of course the respective canvas and off-canvas divs and trigger button.

What do I have to do? Any help is very much appreciated.

@Anke
Copy link
Author

Anke commented Jul 5, 2017

Is the old version still available for download?

@JoryHogeveen
Copy link

@Anke See this PR for the fix: #240

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants