зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1292245 - remove some unnecessary imports of chrome from devtools; r=gregtatum
MozReview-Commit-ID: JVVVHAImsko --HG-- extra : rebase_source : 939fbeb84405bf3740202eb5c0f1ba6c8aae9d92
This commit is contained in:
Родитель
586ae2d8aa
Коммит
c99878c1ab
|
@ -125,9 +125,11 @@ devtools/server/actors/**
|
|||
devtools/server/performance/**
|
||||
devtools/server/tests/**
|
||||
devtools/shared/*.js
|
||||
!devtools/shared/async-utils.js
|
||||
!devtools/shared/css-lexer.js
|
||||
!devtools/shared/defer.js
|
||||
!devtools/shared/event-emitter.js
|
||||
!devtools/shared/indentation.js
|
||||
!devtools/shared/loader-plugin-raw.jsm
|
||||
!devtools/shared/task.js
|
||||
devtools/shared/*.jsm
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
* See Task documentation at https://developer.mozilla.org/en-US/docs/Mozilla/JavaScript_code_modules/Task.jsm.
|
||||
*/
|
||||
|
||||
var {Cu} = require("chrome");
|
||||
var {Task} = require("devtools/shared/task");
|
||||
var Promise = require("promise");
|
||||
|
||||
|
@ -54,7 +53,7 @@ exports.asyncOnce = function asyncOnce(func) {
|
|||
*/
|
||||
exports.listenOnce = function listenOnce(element, event, useCapture) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
var onEvent = function (ev) {
|
||||
let onEvent = function (ev) {
|
||||
element.removeEventListener(event, onEvent, useCapture);
|
||||
resolve(ev);
|
||||
};
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const { Cu } = require("chrome");
|
||||
const Services = require("Services");
|
||||
|
||||
const EXPAND_TAB = "devtools.editor.expandtab";
|
||||
|
|
Загрузка…
Ссылка в новой задаче