зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1708625 - [devtools] Remove Promise.jsm usage in breadcrumb.js. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D113911
This commit is contained in:
Родитель
fe31a10105
Коммит
2c1ee5e54c
|
@ -4,7 +4,6 @@
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
const promise = require("promise");
|
|
||||||
const flags = require("devtools/shared/flags");
|
const flags = require("devtools/shared/flags");
|
||||||
const { ELLIPSIS } = require("devtools/shared/l10n");
|
const { ELLIPSIS } = require("devtools/shared/l10n");
|
||||||
const EventEmitter = require("devtools/shared/event-emitter");
|
const EventEmitter = require("devtools/shared/event-emitter");
|
||||||
|
@ -613,7 +612,7 @@ HTMLBreadcrumbs.prototype = {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
|
|
||||||
this.keyPromise = (this.keyPromise || promise.resolve(null)).then(() => {
|
this.keyPromise = (this.keyPromise || Promise.resolve(null)).then(() => {
|
||||||
let currentnode;
|
let currentnode;
|
||||||
|
|
||||||
const isLeft = event.code === "ArrowLeft";
|
const isLeft = event.code === "ArrowLeft";
|
||||||
|
|
Загрузка…
Ссылка в новой задаче