© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Kleo Petrov
Professional human being for 29 years
You can pass arguments to your module's anonymous function (also known as mixins).
I've made a simple example, you can check here.
You can also read Addy Osmani's explanation of Importing Mixins under module pattern variations section.
Robert van der Elst
Front End Designer
I figured it out through your example :) I hadn't assigned a variable to the anonymous function, so apparently that's how they're referenced? It works fine now, so I'm happy! :D