Commit 0ba78e65 authored by David Stutz's avatar David Stutz

Merge pull request #318 from shayh/master

prevent the "select all" from being created twice
parents aac1e7d7 ce84d91b
......@@ -310,6 +310,9 @@
var tag = $(element).prop('tagName')
.toLowerCase();
if ($(element).prop('value') == this.options.selectAllValue)
return
if (tag === 'optgroup') {
this.createOptgroup(element);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment