зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1772093 - Part 4: Use plain object for lazy getter in devtools/client/storage/. r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D147900
This commit is contained in:
Родитель
f28017dac7
Коммит
9f4d6c53aa
|
@ -31,8 +31,10 @@ const { LocalizationHelper, ELLIPSIS } = require("devtools/shared/l10n");
|
|||
const L10N = new LocalizationHelper(DBG_STRINGS_URI);
|
||||
const HTML_NS = "http://www.w3.org/1999/xhtml";
|
||||
|
||||
const lazy = {};
|
||||
|
||||
XPCOMUtils.defineLazyServiceGetter(
|
||||
this,
|
||||
lazy,
|
||||
"clipboardHelper",
|
||||
"@mozilla.org/widget/clipboardhelper;1",
|
||||
"nsIClipboardHelper"
|
||||
|
@ -785,7 +787,7 @@ VariablesView.prototype = {
|
|||
*/
|
||||
_copyItem: function() {
|
||||
const item = this.getFocusedItem();
|
||||
clipboardHelper.copyString(
|
||||
lazy.clipboardHelper.copyString(
|
||||
item._nameString + item.separatorStr + item._valueString
|
||||
);
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче