Skip to content

Commit

Permalink
Merge pull request #196 from GwtMaterialDesign/revert-190-master
Browse files Browse the repository at this point in the history
Revert "Fixes #189, clear should not remove label, error label and listbox"
  • Loading branch information
kevzlou7979 authored Feb 1, 2017
2 parents 543929f + ff05887 commit 41858f7
Showing 1 changed file with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@

import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;

import static gwt.material.design.addins.client.combobox.js.JsComboBox.$;
Expand Down Expand Up @@ -212,17 +211,6 @@ public void add(Widget child) {
listbox.add(child);
}

@Override
public void clear() {
final Iterator<Widget> it = iterator();
while (it.hasNext()) {
final Widget widget = it.next();
if (widget != label && widget != lblError && widget != listbox) {
it.remove();
}
}
}

/**
* Sets multi-value select boxes.
*/
Expand Down Expand Up @@ -594,4 +582,4 @@ public MaterialWidget getListbox() {
public Label getLabel() {
return label;
}
}
}

0 comments on commit 41858f7

Please sign in to comment.