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

Declare functions before they're used. #27

Closed
wants to merge 1 commit into from

Conversation

jonathanza
Copy link

I implemented this plugin in a site using RequireJS. I kept running into an issue where the _rows function had not already been defined and would fail on this line:

rows = _rows($elements);

By moving the functions to the top of the file, the functions should always be available.

@liabru liabru closed this in cae21cd Aug 31, 2014
@liabru
Copy link
Owner

liabru commented Aug 31, 2014

Cheers for raising this

@liabru
Copy link
Owner

liabru commented Aug 31, 2014

I forgot to ask, I've reorganized the source in the latest master version.

Can you tell me if this solves the issue?

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

Successfully merging this pull request may close these issues.

None yet

2 participants