From 1f204669c4e54c82f45676bca78f93cffbf1c980 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Wed, 23 Aug 2006 21:27:14 +0000 Subject: [PATCH] Fixed shortClassName() to not display a leading '.'. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4341 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/as/com/threerings/util/ClassUtil.as | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/as/com/threerings/util/ClassUtil.as b/src/as/com/threerings/util/ClassUtil.as index 071f77510..f51bf68ed 100644 --- a/src/as/com/threerings/util/ClassUtil.as +++ b/src/as/com/threerings/util/ClassUtil.as @@ -15,9 +15,7 @@ public class ClassUtil { var s :String = getQualifiedClassName(obj); var dex :int = s.lastIndexOf("."); - if (dex != -1) { - s = s.substring(dex); - } + s = s.substring(dex + 1); // works even if dex is -1 return s.replace("::", "."); }