Skip to content

Commit

Permalink
fix problem with dynamically populated selects not working; refresh i…
Browse files Browse the repository at this point in the history
…tems array when MutationObserver fires; added at line 208
  • Loading branch information
Tom Bradbury committed Feb 11, 2015
1 parent 5661725 commit 94343a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions jquery.minimalect.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@
if(mutations.length > 0){
// ...reparse the select
m.ul.html(m._parseSelect()+'<li class="'+op.class_empty+'">'+op.empty+'</li>');
m.items = m.wrapper.find('li');
if(m.options.debug) console.log("Minimalect detected a DOM change for ", m.element);
}
});
Expand Down
Loading

0 comments on commit 94343a8

Please sign in to comment.