Bug 1400404 - Adding bool and number to list of PropTypes in Json-Panel. r=Honza
authorabhinav <abhinav.koppula@gmail.com>
Fri, 22 Sep 2017 13:21:07 +0530
changeset 383333 5d5d1d2271049d89c79f32b295b5859a5ffe7950
parent 383332 1e3c2c6f12d16798d2ca82f597205d854c7a5f82
child 383334 dbf1351a429ae23910a9001da1ad0fd0969ab67a
push id95539
push userkwierso@gmail.com
push dateThu, 28 Sep 2017 00:01:12 +0000
treeherdermozilla-inbound@72de90e66155 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersHonza
bugs1400404
milestone58.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1400404 - Adding bool and number to list of PropTypes in Json-Panel. r=Honza MozReview-Commit-ID: cTrHWYFtwW
devtools/client/jsonview/components/json-panel.js
devtools/client/jsonview/components/main-tabbed-area.js
--- a/devtools/client/jsonview/components/json-panel.js
+++ b/devtools/client/jsonview/components/json-panel.js
@@ -33,17 +33,19 @@ define(function (require, exports, modul
    */
   let JsonPanel = createClass({
     displayName: "JsonPanel",
 
     propTypes: {
       data: PropTypes.oneOfType([
         PropTypes.string,
         PropTypes.array,
-        PropTypes.object
+        PropTypes.object,
+        PropTypes.bool,
+        PropTypes.number
       ]),
       jsonTextLength: PropTypes.number,
       searchFilter: PropTypes.string,
       actions: PropTypes.object,
     },
 
     getInitialState: function () {
       return {};
--- a/devtools/client/jsonview/components/main-tabbed-area.js
+++ b/devtools/client/jsonview/components/main-tabbed-area.js
@@ -26,17 +26,19 @@ define(function (require, exports, modul
       jsonText: PropTypes.string,
       tabActive: PropTypes.number,
       actions: PropTypes.object,
       headers: PropTypes.object,
       searchFilter: PropTypes.string,
       json: PropTypes.oneOfType([
         PropTypes.string,
         PropTypes.object,
-        PropTypes.array
+        PropTypes.array,
+        PropTypes.bool,
+        PropTypes.number
       ])
     },
 
     getInitialState: function () {
       return {
         json: {},
         headers: {},
         jsonText: this.props.jsonText,