66const React = require ( "react" ) ;
77const {
88 isGrip,
9- safeObjectLink,
109 wrapRender,
1110} = require ( "./rep-utils" ) ;
1211const Caption = require ( "./caption" ) ;
@@ -24,7 +23,6 @@ GripArray.propTypes = {
2423 // @TODO Change this to Object.values once it's supported in Node's version of V8
2524 mode : React . PropTypes . oneOf ( Object . keys ( MODE ) . map ( key => MODE [ key ] ) ) ,
2625 provider : React . PropTypes . object ,
27- objectLink : React . PropTypes . func ,
2826 onDOMNodeMouseOver : React . PropTypes . func ,
2927 onDOMNodeMouseOut : React . PropTypes . func ,
3028 onInspectIconClick : React . PropTypes . func ,
@@ -62,11 +60,11 @@ function GripArray(props) {
6260 "data-link-actor-id" : object . actor ,
6361 className : "objectBox objectBox-array" } ,
6462 title ,
65- safeObjectLink ( props , {
63+ span ( {
6664 className : "arrayLeftBracket" ,
6765 } , brackets . left ) ,
6866 ...interleaveCommas ( items ) ,
69- safeObjectLink ( props , {
67+ span ( {
7068 className : "arrayRightBracket" ,
7169 } , brackets . right ) ,
7270 span ( {
@@ -94,13 +92,13 @@ function getLength(grip) {
9492 return grip . preview . length || grip . preview . childNodesLength || 0 ;
9593}
9694
97- function getTitle ( props , object , context ) {
95+ function getTitle ( props , object ) {
9896 if ( props . mode === MODE . TINY ) {
9997 return "" ;
10098 }
10199
102100 let title = props . title || object . class || "Array" ;
103- return safeObjectLink ( props , { } , title + " " ) ;
101+ return span ( { } , title + " " ) ;
104102}
105103
106104function getPreviewItems ( grip ) {
@@ -176,7 +174,7 @@ function arrayIterator(props, grip, max) {
176174 const itemsShown = ( items . length + foldedEmptySlots ) ;
177175 if ( gripLength > itemsShown ) {
178176 items . push ( Caption ( {
179- object : safeObjectLink ( props , { } , "more…" )
177+ object : span ( { } , "more…" )
180178 } ) ) ;
181179 }
182180
0 commit comments