j2sNative references moved to Platform
[jalview.git] / src / jalview / datamodel / DBRefSource.java
index 47d1082..008bb7c 100755 (executable)
@@ -20,6 +20,8 @@
  */
 package jalview.datamodel;
 
+import jalview.util.Platform;
+
 import java.lang.reflect.Field;
 import java.util.ArrayList;
 import java.util.List;
@@ -128,11 +130,12 @@ public class DBRefSource
   public static String[] allSources()
 
   {
+         if (Platform.isJS()) {
+                 return allTypes;
+         }
     /**
      * @j2sNative
      * 
-     *            return C$.allTypes;
-     * 
      */
 
     {