Mercurial > snowl
changeset 306:58fb965e56b9
simplify URI module code slightly
author | Myk Melez <myk@mozilla.org> |
---|---|
date | Wed, 08 Oct 2008 16:43:45 -0700 |
parents | 71b4dece4931 |
children | 7b21ebd95ad3 |
files | modules/URI.js |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/modules/URI.js Thu Oct 02 17:34:22 2008 -0700 +++ b/modules/URI.js Wed Oct 08 16:43:45 2008 -0700 @@ -65,10 +65,8 @@ URI.__defineGetter__("ioSvc", function() { - let ioSvc = Cc["@mozilla.org/network/io-service;1"]. - getService(Ci.nsIIOService); delete this.ioSvc; - this.ioSvc = ioSvc; - return this.ioSvc; + return this.ioSvc = Cc["@mozilla.org/network/io-service;1"]. + getService(Ci.nsIIOService); } );