Bug 1320161 - Fix objectLink in Attribute Rep; r=Honza
authorNicolas Chevobbe <chevobbe.nicolas@gmail.com>
Thu, 24 Nov 2016 19:19:28 +0100
changeset 324301 f59cc2c8a18067f8410d267aae8fe3560b744835
parent 324300 c4d075822fbfd1a2e07b93bdb70edd3596d02139
child 324302 fd10f23e5aa3273ebff5d021c1db3f10c2a39c36
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewersHonza
bugs1320161
milestone53.0a1
Bug 1320161 - Fix objectLink in Attribute Rep; r=Honza MozReview-Commit-ID: IaHGVZbxHhR
devtools/client/shared/components/reps/attribute.js
--- a/devtools/client/shared/components/reps/attribute.js
+++ b/devtools/client/shared/components/reps/attribute.js
@@ -28,25 +28,25 @@ define(function (require, exports, modul
       object: React.PropTypes.object.isRequired
     },
 
     getTitle: function (grip) {
       return grip.preview.nodeName;
     },
 
     render: function () {
-      let grip = this.props.object;
-      let value = grip.preview.value;
+      let object = this.props.object;
+      let value = object.preview.value;
       let objectLink = this.props.objectLink || span;
 
       return (
-        objectLink({className: "objectLink-Attr"},
+        objectLink({className: "objectLink-Attr", object},
           span({},
             span({className: "attrTitle"},
-              this.getTitle(grip)
+              this.getTitle(object)
             ),
             span({className: "attrEqual"},
               "="
             ),
             StringRepFactory({object: value})
           )
         )
       );