Permalink
Browse files

Title for Arrayish

  • Loading branch information...
1 parent 6c61141 commit af90af4c361735f8f038f54398c76d1985e6d893 @sroussey committed Oct 2, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 extension/content/firebug/chrome/reps.js
@@ -815,6 +815,14 @@ FirebugReps.ArrayishObject = domplate(FirebugReps.ArrBase,
SPAN({"class": "arrayProperties", role: "group"})
),
+ getTitle: function(object, context)
+ {
+ const re =/\[object ([^\]]*)/;
+ var label = Str.safeToString(object);
+ var m = re.exec(label);
+ return m[1] || label;
+ },
+
isArray: function(obj, win)
{
if (mightBeArray(obj, win))

0 comments on commit af90af4

Please sign in to comment.