Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed formatting of previous commit

  • Loading branch information...
commit 20693cdd82e0ef3c13de6bc25667893ccaef7939 1 parent 5d32d8a
@SebastianZ SebastianZ authored
Showing with 8 additions and 6 deletions.
  1. +8 −6 extension/content/firebug/html/htmlPanel.js
View
14 extension/content/firebug/html/htmlPanel.js
@@ -2266,14 +2266,16 @@ AttributeEditor.prototype = domplate(Firebug.InlineEditor.prototype,
getInitialValue: function(target, value)
{
- if(value == "")
+ if (value == "")
return value;
+
var element = Firebug.getRepObject(target);
- if(element && element instanceof window.Element)
- {
- var attributeName = Dom.getPreviousByClass(target, "nodeName").textContent;
- return element.getAttribute(attributeName);
- }
+ if (element && element instanceof window.Element)
+ {
+ var attributeName = Dom.getPreviousByClass(target, "nodeName").textContent;
+ return element.getAttribute(attributeName);
+ }
+
return value;
}
});
Please sign in to comment.
Something went wrong with that request. Please try again.