Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / swingjs / j2s / java / net / Parts.js
index 1bf37b3..187c957 100644 (file)
@@ -1,31 +1,31 @@
-Clazz.declarePackage ("java.net");\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.path = null;\r
-this.query = null;\r
-this.ref = null;\r
-Clazz.instantialize (this, arguments);\r
-}, java.net, "Parts");\r
-Clazz.makeConstructor (c$, \r
-function (file) {\r
-var ind = file.indexOf ('#');\r
-this.ref = ind < 0 ? null : file.substring (ind + 1);\r
-file = ind < 0 ? file : file.substring (0, ind);\r
-var q = file.lastIndexOf ('?');\r
-if (q != -1) {\r
-this.query = file.substring (q + 1);\r
-this.path = file.substring (0, q);\r
-} else {\r
-this.path = file;\r
-}}, "~S");\r
-Clazz.defineMethod (c$, "getPath", \r
-function () {\r
-return this.path;\r
-});\r
-Clazz.defineMethod (c$, "getQuery", \r
-function () {\r
-return this.query;\r
-});\r
-Clazz.defineMethod (c$, "getRef", \r
-function () {\r
-return this.ref;\r
-});\r
+Clazz.declarePackage ("java.net");
+c$ = Clazz.decorateAsClass (function () {
+this.path = null;
+this.query = null;
+this.ref = null;
+Clazz.instantialize (this, arguments);
+}, java.net, "Parts");
+Clazz.makeConstructor (c$, 
+function (file) {
+var ind = file.indexOf ('#');
+this.ref = ind < 0 ? null : file.substring (ind + 1);
+file = ind < 0 ? file : file.substring (0, ind);
+var q = file.lastIndexOf ('?');
+if (q != -1) {
+this.query = file.substring (q + 1);
+this.path = file.substring (0, q);
+} else {
+this.path = file;
+}}, "~S");
+Clazz.defineMethod (c$, "getPath", 
+function () {
+return this.path;
+});
+Clazz.defineMethod (c$, "getQuery", 
+function () {
+return this.query;
+});
+Clazz.defineMethod (c$, "getRef", 
+function () {
+return this.ref;
+});