Skip to content

Binding from external file produces an error #16

@gudata

Description

@gudata

If I load the following js from external file

(function() {

  stroll.bind('#sidebar nav.categories div.scroll ul');

}).call(this);

I got an error

Uncaught TypeError: Cannot read property 'classList' of null
isCapablestroll.js:229
window.stroll.bindstroll.js:242
(anonymous function)store.js:3
(anonymous function)

If I do

  stroll.bind('#sidebar nav.categories div.scroll ul');

from the console or

<script> stroll.bind('#sidebar nav.categories div.scroll ul');</script>

tags its working.

Any ideas what I am doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions