X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fj2s%2FJU%2FAjaxURLStreamHandlerFactory.js;h=88e8d6f7bb29e88807a4b5747bdf1a822b4475a9;hp=a9be050f8845d22a8c9f073cdbc21f42dc8a0370;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=8ffd05b3abe52c0b6b79b011c0966361f82d5fe6 diff --git a/site/j2s/JU/AjaxURLStreamHandlerFactory.js b/site/j2s/JU/AjaxURLStreamHandlerFactory.js index a9be050..88e8d6f 100644 --- a/site/j2s/JU/AjaxURLStreamHandlerFactory.js +++ b/site/j2s/JU/AjaxURLStreamHandlerFactory.js @@ -1,16 +1,16 @@ -Clazz.declarePackage ("JU"); -Clazz.load (["java.net.URLStreamHandlerFactory", "java.util.Hashtable"], "JU.AjaxURLStreamHandlerFactory", ["JU.AjaxURLStreamHandler"], function () { -c$ = Clazz.decorateAsClass (function () { -this.htFactories = null; -Clazz.instantialize (this, arguments); -}, JU, "AjaxURLStreamHandlerFactory", null, java.net.URLStreamHandlerFactory); -Clazz.prepareFields (c$, function () { -this.htFactories = new java.util.Hashtable (); -}); -Clazz.overrideMethod (c$, "createURLStreamHandler", -function (protocol) { -var fac = this.htFactories.get (protocol); -if (fac == null) this.htFactories.put (protocol, fac = new JU.AjaxURLStreamHandler (protocol)); -return (fac.protocol == null ? null : fac); -}, "~S"); -}); +Clazz.declarePackage ("JU"); +Clazz.load (["java.net.URLStreamHandlerFactory", "java.util.Hashtable"], "JU.AjaxURLStreamHandlerFactory", ["JU.AjaxURLStreamHandler"], function () { +c$ = Clazz.decorateAsClass (function () { +this.htFactories = null; +Clazz.instantialize (this, arguments); +}, JU, "AjaxURLStreamHandlerFactory", null, java.net.URLStreamHandlerFactory); +Clazz.prepareFields (c$, function () { +this.htFactories = new java.util.Hashtable (); +}); +Clazz.overrideMethod (c$, "createURLStreamHandler", +function (protocol) { +var fac = this.htFactories.get (protocol); +if (fac == null) this.htFactories.put (protocol, fac = new JU.AjaxURLStreamHandler (protocol)); +return (fac.protocol == null ? null : fac); +}, "~S"); +});