no need to inherit from Emitter

This commit is contained in:
Naoyuki Kanezawa
2013-08-02 23:54:00 +09:00
parent afcfb3a7e8
commit 9bb5d366ce

View File

@@ -2,11 +2,11 @@ package com.github.nkzawa.socketio.client;
import com.github.nkzawa.emitter.Emitter; import com.github.nkzawa.emitter.Emitter;
public class On extends Emitter { public class On {
private On() {} private On() {}
public static Handle on(final Emitter obj, final String ev, final Listener fn) { public static Handle on(final Emitter obj, final String ev, final Emitter.Listener fn) {
obj.on(ev, fn); obj.on(ev, fn);
return new Handle() { return new Handle() {
@Override @Override