Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…tiselect-widget into dariocravero-master
  • Loading branch information
ehynds committed Nov 23, 2010
2 parents 2c40cdd + 5cee8ff commit e6390c3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/jquery.multiselect.filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,13 @@
},

updateCache: function(){
var optiontags = this.element.children(),
isOptgroup = optiontags[0].tagName === "OPTGROUP" || false;
var optiontags = this.element.children();

this.cache = optiontags.map(function(){
var self = $(this);

// account for optgroups
if( isOptgroup ){
if( this.tagName === "OPTGROUP" ){
self = self.children();
}

Expand Down

0 comments on commit e6390c3

Please sign in to comment.