mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-31 22:02:27 +01:00
Replace expression closures (methods).
Expression closures are to be axed. See https://bugzil.la/1083458.
This commit is contained in:
@@ -208,8 +208,11 @@ var Services = Module("Services", {
|
||||
*
|
||||
* @param {string} name The service's cache key.
|
||||
*/
|
||||
has: function has(name) hasOwnProperty(this.services, name) && this.services[name].class in Cc &&
|
||||
this.services[name].interfaces.every(iface => iface in Ci)
|
||||
has: function has(name) {
|
||||
return hasOwnProperty(this.services, name) &&
|
||||
this.services[name].class in Cc &&
|
||||
this.services[name].interfaces.every(iface => iface in Ci);
|
||||
}
|
||||
});
|
||||
|
||||
endModule();
|
||||
|
||||
Reference in New Issue
Block a user