mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 10:44:56 +00:00
Bug 1207499 - Part 1: Remove use of expression closure from b2g/. r=sicking
--HG-- extra : commitid : Lp9cF6C6O32 extra : rebase_source : 21635c8fd57ac581ead1cae645fc6389dfd7d74e
This commit is contained in:
parent
d90d0f125e
commit
7dcffea520
@ -20,7 +20,7 @@ MailtoProtocolHandler.prototype = {
|
||||
Ci.nsIProtocolHandler.URI_NOAUTH |
|
||||
Ci.nsIProtocolHandler.URI_LOADABLE_BY_ANYONE |
|
||||
Ci.nsIProtocolHandler.URI_DOES_NOT_RETURN_DATA,
|
||||
allowPort: function() false,
|
||||
allowPort: () => false,
|
||||
|
||||
newURI: function Proto_newURI(aSpec, aOriginCharset) {
|
||||
let uri = Cc["@mozilla.org/network/simple-uri;1"].createInstance(Ci.nsIURI);
|
||||
|
@ -62,13 +62,13 @@ function hookScreen(window) {
|
||||
};
|
||||
|
||||
Object.defineProperty(screen, 'width', {
|
||||
get: function () GlobalSimulatorScreen.width
|
||||
get: () => GlobalSimulatorScreen.width
|
||||
});
|
||||
Object.defineProperty(screen, 'height', {
|
||||
get: function () GlobalSimulatorScreen.height
|
||||
get: () => GlobalSimulatorScreen.height
|
||||
});
|
||||
Object.defineProperty(screen, 'mozOrientation', {
|
||||
get: function () GlobalSimulatorScreen.mozOrientation
|
||||
get: () => GlobalSimulatorScreen.mozOrientation
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -29,7 +29,7 @@ SmsProtocolHandler.prototype = {
|
||||
Ci.nsIProtocolHandler.URI_NOAUTH |
|
||||
Ci.nsIProtocolHandler.URI_LOADABLE_BY_ANYONE |
|
||||
Ci.nsIProtocolHandler.URI_DOES_NOT_RETURN_DATA,
|
||||
allowPort: function() false,
|
||||
allowPort: () => false,
|
||||
|
||||
newURI: function Proto_newURI(aSpec, aOriginCharset) {
|
||||
let uri = Cc["@mozilla.org/network/simple-uri;1"].createInstance(Ci.nsIURI);
|
||||
|
@ -28,7 +28,7 @@ TelProtocolHandler.prototype = {
|
||||
Ci.nsIProtocolHandler.URI_NOAUTH |
|
||||
Ci.nsIProtocolHandler.URI_LOADABLE_BY_ANYONE |
|
||||
Ci.nsIProtocolHandler.URI_DOES_NOT_RETURN_DATA,
|
||||
allowPort: function() false,
|
||||
allowPort: () => false,
|
||||
|
||||
newURI: function Proto_newURI(aSpec, aOriginCharset) {
|
||||
let uri = Cc["@mozilla.org/network/simple-uri;1"].createInstance(Ci.nsIURI);
|
||||
|
@ -21,10 +21,10 @@ const { EventEmitter } = Cu.import("resource://gre/modules/devtools/shared/event
|
||||
// have trailing newlines. And note that registerLogHandler actually registers
|
||||
// an error handler, despite its name.
|
||||
Subprocess.registerLogHandler(
|
||||
function(s) console.error("subprocess: " + s.trim())
|
||||
s => console.error("subprocess: " + s.trim())
|
||||
);
|
||||
Subprocess.registerDebugHandler(
|
||||
function(s) console.debug("subprocess: " + s.trim())
|
||||
s => console.debug("subprocess: " + s.trim())
|
||||
);
|
||||
|
||||
function SimulatorProcess(options) {
|
||||
@ -38,7 +38,9 @@ function SimulatorProcess(options) {
|
||||
SimulatorProcess.prototype = {
|
||||
|
||||
// check if b2g is running
|
||||
get isRunning() !!this.process,
|
||||
get isRunning() {
|
||||
return !!this.process;
|
||||
},
|
||||
|
||||
/**
|
||||
* Start the process and connect the debugger client.
|
||||
|
Loading…
Reference in New Issue
Block a user