Skip to content

Commit

Permalink
Restored ReadyEvent in onReady method
Browse files Browse the repository at this point in the history
  • Loading branch information
bartmoc committed Apr 10, 2016
1 parent 2343ca6 commit 64d2572
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

public class ReadyEvent extends ChosenEvent<ReadyEvent.ReadyHandler> {
public interface ReadyHandler extends EventHandler {
void onReady();
void onReady(ReadyEvent event);
}

public static final Type<ReadyHandler> TYPE = new Type<ReadyHandler>();
Expand All @@ -41,7 +41,7 @@ public Type<ReadyHandler> getAssociatedType() {

@Override
protected void dispatch(ReadyHandler handler) {
handler.onReady();
handler.onReady(this);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import com.arcbees.chosen.client.event.ChosenChangeEvent.ChosenChangeHandler;
import com.arcbees.chosen.client.event.HidingDropDownEvent.HidingDropDownHandler;
import com.arcbees.chosen.client.event.MaxSelectedEvent.MaxSelectedHandler;
import com.arcbees.chosen.client.event.ReadyEvent;
import com.arcbees.chosen.client.event.ReadyEvent.ReadyHandler;
import com.arcbees.chosen.client.event.ShowingDropDownEvent.ShowingDropDownHandler;
import com.arcbees.chosen.client.gwt.ChosenListBox;
Expand Down Expand Up @@ -77,7 +78,7 @@ private void log(String eventName, String additional) {
).scrollTop($("#log").get(0).getScrollHeight());
}

public void onReady() {
public void onReady(ReadyEvent event) {
log("ReadyEvent", "");
}

Expand Down

0 comments on commit 64d2572

Please sign in to comment.