Bug 1285053 - New console frontend: use variables view link for object inspection. r=bgrins

--HG--
extra : rebase_source : 83611d0790c1052404d1c321e2b91103a8f98ba6
This commit is contained in:
Lin Clark 2016-07-12 13:19:49 -04:00
Родитель 3652f29f7b
Коммит abca42c746
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -8,10 +8,12 @@
// React
const {
createFactory,
PropTypes
} = require("devtools/client/shared/vendor/react");
const { createFactories } = require("devtools/client/shared/components/reps/rep-utils");
const { Rep } = createFactories(require("devtools/client/shared/components/reps/rep"));
const VariablesViewLink = createFactory(require("devtools/client/webconsole/new-console-output/components/variables-view-link").VariablesViewLink);
const { Grip } = require("devtools/client/shared/components/reps/grip");
GripMessageBody.displayName = "GripMessageBody";
@ -23,6 +25,7 @@ GripMessageBody.propTypes = {
function GripMessageBody(props) {
return Rep({
object: props.grip,
objectLink: VariablesViewLink,
defaultRep: Grip
});
}