Skip to content

Small fix for inheriting class attributes from select on the ul elements that are generated at the bottom of the body element #117

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

Closed
wants to merge 2 commits into from

Conversation

bogdanRada
Copy link
Contributor

Small fix for inheriting class attributes from select on the ul elements . It seems that this code : for (var i in classes) was causing troubles when i have in my javascript a function that is extending the Array.prototype and was appending those functions to the class attribute of the ul elements of the selectBox plugin. The problem was the scope of the variable i. Changed that with this :
for (var i = 0; i < classes.length; i++) and now everything looks nice

Small fix for inheriting class attributes from select on the ul elements . It seems that this code : for (var i in classes)   was causing troubles when i have in my javascript a function that is extending the Array.prototype and was appending those functions to the class attribute of the ul elements of the selectBox plugin. The problem was the scope of the variable i. Changed that with this : 
for (var i = 0; i < classes.length; i++) and now everything looks nice
Small fix for inheriting class attributes from select on the ul elements . It seems that this code : for (var i in classes)   was causing troubles when i have in my javascript a function that is extending the Array.prototype and was appending those functions to the class attribute of the ul elements of the selectBox plugin. The problem was the scope of the variable i. Changed that with this : 
for (var i = 0; i < classes.length; i++) and now everything looks nice
@marcj
Copy link
Owner

marcj commented May 11, 2013

@bogdanRada, can you port this to the newest version?

@bogdanRada
Copy link
Contributor Author

i am not sure i understand , can you please explain?

@marcj
Copy link
Owner

marcj commented May 12, 2013

Well, your commit isn't mergeable since the line you've changed has been changed since then:

for (var i in classes) {
    options.addClass(classes[i] + '-selectBox-dropdown-menu');
}

So if you'd create another pull request that is based on the last version I can just merge it without hassle. :)
Oh, and please remove the *.min.js version from this PR then.

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.

2 participants