зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1449170 - Remove old-event-emitter usage from responsive.html; r=jryans.
MozReview-Commit-ID: KREEQYpIVh6 --HG-- extra : rebase_source : 88e5a77db7e8aba6a9f237657c989e9747c4ae41
This commit is contained in:
Родитель
f733b4a04e
Коммит
ffe252e467
|
@ -7,7 +7,7 @@
|
|||
const { Ci } = require("chrome");
|
||||
const promise = require("promise");
|
||||
const Services = require("Services");
|
||||
const EventEmitter = require("devtools/shared/old-event-emitter");
|
||||
const EventEmitter = require("devtools/shared/event-emitter");
|
||||
|
||||
const TOOL_URL = "chrome://devtools/content/responsive.html/index.xhtml";
|
||||
|
||||
|
|
|
@ -148,7 +148,7 @@ function waitForViewportResizeTo(ui, width, height) {
|
|||
// hang forever. See bug 1302879.
|
||||
let browser = ui.getViewportBrowser();
|
||||
|
||||
let onResize = (_, data) => {
|
||||
let onResize = data => {
|
||||
if (!isSizeMatching(data)) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -101,7 +101,7 @@ function doFinalChecks(editor) {
|
|||
/* Helpers */
|
||||
function waitForResizeTo(rdmUI, type, value) {
|
||||
return new Promise(resolve => {
|
||||
let onResize = (_, data) => {
|
||||
let onResize = data => {
|
||||
if (data[type] != value) {
|
||||
return;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче