After we find a match, no need to keep looking.

This commit is contained in:
Nathan Gray 2015-03-24 15:18:19 +00:00
parent 89a9ea4bb1
commit 99657a094b

View File

@ -955,6 +955,7 @@ var et2_selectbox_ro = et2_selectbox.extend([et2_IDetachedDOM],
{
this.span.text(label);
if (typeof option == 'object' && option.title) this.set_statustext(option.title);
break;
}
else
{
@ -962,6 +963,7 @@ var et2_selectbox_ro = et2_selectbox.extend([et2_IDetachedDOM],
.text(label)
.attr('data-value', _value[i])
.appendTo(this.span);
break;
}
}
}