Browse Source

simplify argument format

Myk Melez 16 years ago
parent
commit
02e338f168
1 changed files with 4 additions and 4 deletions
  1. 4 4
      URI.js

+ 4 - 4
URI.js

@@ -46,17 +46,17 @@ const Cu = Components.utils;
  * class, but in the future it might return an instance of this class and have
  * a more JS-friendly API for accessing and manipulating the URI.
  */
-function URI(aSpec, aCharset, aBaseURI) {
-  return URI.ioSvc.newURI(aSpec, aCharset, aBaseURI);
+function URI(spec, charset, baseURI) {
+  return URI.ioSvc.newURI(spec, charset, baseURI);
 }
 
 /**
  * Get a URI.  Similar to the constructor, but returns null instead of throwing
  * an exception if the URI object could not be constructed.
  */
-URI.get = function(aSpec, aCharset, aBaseURI) {
+URI.get = function(spec, charset, baseURI) {
   try {
-    return new URI(aSpec, aCharset, aBaseURI);
+    return new URI(spec, charset, baseURI);
   }
   catch(ex) {
     return null;