Bug 1420273 - Use module.exports for TextPropertyEditor and TextProperty. r=mparkms

This commit is contained in:
Gabriel Luong 2017-11-23 16:19:08 -05:00
parent 7ee7132d62
commit 1a5bb16905
4 changed files with 10 additions and 8 deletions

View File

@ -9,8 +9,7 @@
const promise = require("promise");
const CssLogic = require("devtools/shared/inspector/css-logic");
const {ELEMENT_STYLE} = require("devtools/shared/specs/styles");
const {TextProperty} =
require("devtools/client/inspector/rules/models/text-property");
const TextProperty = require("devtools/client/inspector/rules/models/text-property");
const {promiseWarn} = require("devtools/client/inspector/shared/utils");
const {parseNamedDeclarations} = require("devtools/shared/css/parsing-utils");
const Services = require("Services");

View File

@ -212,4 +212,4 @@ TextProperty.prototype = {
}
};
exports.TextProperty = TextProperty;
module.exports = TextProperty;

View File

@ -7,10 +7,13 @@
const {l10n} = require("devtools/shared/inspector/css-logic");
const {ELEMENT_STYLE} = require("devtools/shared/specs/styles");
const Rule = require("devtools/client/inspector/rules/models/rule");
const {InplaceEditor, editableField, editableItem} =
require("devtools/client/shared/inplace-editor");
const {TextPropertyEditor} =
require("devtools/client/inspector/rules/views/text-property-editor");
const {
InplaceEditor,
editableField,
editableItem
} = require("devtools/client/shared/inplace-editor");
const TextPropertyEditor =
require("devtools/client/inspector/rules/views/text-property-editor");
const {
createChild,
blurOnMultipleProperties,

View File

@ -1040,4 +1040,4 @@ TextPropertyEditor.prototype = {
},
};
exports.TextPropertyEditor = TextPropertyEditor;
module.exports = TextPropertyEditor;