From 136af2a6b90ed75af240b3f8ab037f01a5f058a6 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Tue, 16 Sep 2008 23:17:59 +0000 Subject: [PATCH] Implement equals() with compareTo(). git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5379 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/as/com/threerings/crowd/chat/data/ChatChannel.as | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/as/com/threerings/crowd/chat/data/ChatChannel.as b/src/as/com/threerings/crowd/chat/data/ChatChannel.as index 1e82ecfaa..514d5c070 100644 --- a/src/as/com/threerings/crowd/chat/data/ChatChannel.as +++ b/src/as/com/threerings/crowd/chat/data/ChatChannel.as @@ -42,7 +42,7 @@ public /*abstract*/ class ChatChannel extends SimpleStreamableObject // from interface Equalable public function equals (other :Object) :Boolean { - throw new Error("abstract"); + return compareTo(other) == 0; } // from interface DSet_Entry