mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
Bug 1732679 - [devtools] Remove usage of Promise.jsm in StyleEditor.jsm. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D126667
This commit is contained in:
parent
520f5c0614
commit
6379ab2434
@ -8,7 +8,6 @@ const EXPORTED_SYMBOLS = ["StyleSheetEditor"];
|
||||
|
||||
const { require } = ChromeUtils.import("resource://devtools/shared/Loader.jsm");
|
||||
const Editor = require("devtools/client/shared/sourceeditor/editor");
|
||||
const promise = require("promise");
|
||||
const {
|
||||
shortSource,
|
||||
prettifyCSS,
|
||||
@ -458,7 +457,7 @@ StyleSheetEditor.prototype = {
|
||||
*/
|
||||
load: function(inputElement, cssProperties) {
|
||||
if (this._isDestroyed) {
|
||||
return promise.reject(
|
||||
return Promise.reject(
|
||||
"Won't load source editor as the style sheet has " +
|
||||
"already been removed from Style Editor."
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user