Skip to content

Commit

Permalink
Title for Arrayish
Browse files Browse the repository at this point in the history
  • Loading branch information
sroussey committed Oct 2, 2012
1 parent 6c61141 commit af90af4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions extension/content/firebug/chrome/reps.js
Expand Up @@ -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))
Expand Down

0 comments on commit af90af4

Please sign in to comment.