Bug 1307940 - Add toolbox-dependent method to serviceContainer only if toolbox is available. r=bgrins

MozReview-Commit-ID: CjRXKemaJ4f
This commit is contained in:
nchevobbe
2017-04-24 10:09:27 +02:00
parent f47c18b50f
commit 07fed53b5b
4 changed files with 54 additions and 49 deletions

View File

@@ -49,9 +49,9 @@ const Message = createClass({
timeStamp: PropTypes.number,
serviceContainer: PropTypes.shape({
emitNewMessage: PropTypes.func.isRequired,
onViewSourceInDebugger: PropTypes.func.isRequired,
onViewSourceInScratchpad: PropTypes.func.isRequired,
onViewSourceInStyleEditor: PropTypes.func.isRequired,
onViewSourceInDebugger: PropTypes.func,
onViewSourceInScratchpad: PropTypes.func,
onViewSourceInStyleEditor: PropTypes.func,
openContextMenu: PropTypes.func.isRequired,
openLink: PropTypes.func.isRequired,
sourceMapService: PropTypes.any,