Skip to content

fix to work with empty list / older version of jquery - #13

Open
tombrown86 wants to merge 2 commits into
NeoFusion:v1from
tombrown86:v1
Open

fix to work with empty list / older version of jquery#13
tombrown86 wants to merge 2 commits into
NeoFusion:v1from
tombrown86:v1

Conversation

@tombrown86

Copy link
Copy Markdown

I was getting console errors due to the selected variable evaluating true when it was empty.
This fix just makes sure there are 1 or more elements to act on.
This may be due to an older version of jquery but either way it's a compatible / future proof fix.

It may be worth looking for same issue in other branches.

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.

1 participant