Bug 1357341 - Fix VariableView with new Reps bundle; r=jdescottes

MozReview-Commit-ID: GSOyL6Nx23Z

--HG--
extra : rebase_source : c930c3f2fd8a7c71c8347872607389d4321e4171
This commit is contained in:
nchevobbe 2017-04-20 12:12:14 +02:00
parent eb02505b4c
commit f9ffde2907

View File

@ -21,13 +21,16 @@ VariablesViewLink.propTypes = {
function VariablesViewLink(props) {
const { className, object, children } = props;
const classes = ["cm-variable"];
if (className) {
classes.push(className);
}
return (
dom.a({
onClick: openVariablesView.bind(null, object),
// Context menu can use this actor id information to enable additional menu items.
"data-link-actor-id": object.actor,
className: className || "cm-variable",
className: classes.join(" "),
draggable: false,
}, children)
);