1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 03:04:12 +01:00

Replace expression closures (methods).

Expression closures are to be axed. See https://bugzil.la/1083458.
This commit is contained in:
Doug Kearns
2015-07-23 01:55:32 +10:00
parent c035aa936b
commit 77d59cdfd1
45 changed files with 1595 additions and 1045 deletions

View File

@@ -86,7 +86,9 @@ function ProtocolBase() {
this.pages = {};
this.providers = {
"content": function (uri, path) this.pages[path] || this.contentBase + path,
"content": function (uri, path) {
return this.pages[path] || this.contentBase + path;
},
"data": function (uri) {
var channel = services.io.newChannel(uri.path.replace(/^\/(.*)(?:#.*)?/, "data:$1"),
@@ -116,7 +118,7 @@ ProtocolBase.prototype = {
},
defaultPort: -1,
allowPort: function (port, scheme) false,
allowPort: function (port, scheme) { return false; },
protocolFlags: 0
| Ci.nsIProtocolHandler.URI_IS_UI_RESOURCE
| Ci.nsIProtocolHandler.URI_IS_LOCAL_RESOURCE,