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

[BUG] Single list item triggers "Uncaught TypeError" #65

Open
BlendedByUs opened this issue May 28, 2012 · 1 comment
Open

[BUG] Single list item triggers "Uncaught TypeError" #65

BlendedByUs opened this issue May 28, 2012 · 1 comment

Comments

@BlendedByUs
Copy link

Line 7

var oPercent = this.attr('style').match(/margin\-left:(.*[0-9])/i) && parseInt(RegExp.$1, 10);

Seems to return...
Uncaught TypeError: Cannot call method 'match' of undefined.

If only one list item is present.

@BlendedByUs
Copy link
Author

Wrapping my code with if .size() > 1 seems to fix this issue but there should be sanity checking I guess in the plugin.

Thanks!

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

1 participant