We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi
I've used this plugin on a site where I've prototyped Array object: "Array.prototype.maxNum = function () {...}"
I've noticed that this property has been included in my select box when this plugin fired.
To avoid this problem, this (line no. 111 in jquery.selectboxes.js):
------------------- CODE ---------------------
for(var item in items) { add(this, item, items[item], sO, startindex); startindex += 1; }
should have additional check if it is own property:
for(var item in items) { if (items.hasOwnProperty(item)) { add(this, item, items[item], sO, startindex); startindex += 1; } }
Regards, Marcin Gosz [email protected]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi
I've used this plugin on a site where I've prototyped Array object:
"Array.prototype.maxNum = function () {...}"
I've noticed that this property has been included in my select box when this plugin fired.
To avoid this problem, this (line no. 111 in jquery.selectboxes.js):
------------------- CODE ---------------------
for(var item in items)
{
add(this, item, items[item], sO, startindex);
startindex += 1;
}
should have additional check if it is own property:
------------------- CODE ---------------------
for(var item in items)
{
if (items.hasOwnProperty(item)) {
add(this, item, items[item], sO, startindex);
startindex += 1;
}
}
Regards,
Marcin Gosz
[email protected]
The text was updated successfully, but these errors were encountered: