X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fj2s%2Fjava%2Fnet%2FParts.js;h=187c9575513ac37f4e6ed0cc90c7a68d8407c4ee;hp=1bf37b3d061727811150e2dd44b5eed158d45048;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=8ffd05b3abe52c0b6b79b011c0966361f82d5fe6 diff --git a/site/j2s/java/net/Parts.js b/site/j2s/java/net/Parts.js index 1bf37b3..187c957 100644 --- a/site/j2s/java/net/Parts.js +++ b/site/j2s/java/net/Parts.js @@ -1,31 +1,31 @@ -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; -}); +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; +});