[Pkg-mozext-commits] [firebug] 01/28: getInitialvalue was added to attributeEditor object. see issue5755
David Prévot
taffit at moszumanska.debian.org
Mon Mar 31 22:46:23 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to tag firebug-1.10.3
in repository firebug.
commit 5d32d8a92f32982f8f160ee728f092ba2f62d867
Author: Farshid Beheshti <Farshid.Beheshti at gmail.com>
Date: Mon Aug 6 15:03:05 2012 +0330
getInitialvalue was added to attributeEditor object. see issue5755
---
extension/content/firebug/html/htmlPanel.js | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/extension/content/firebug/html/htmlPanel.js b/extension/content/firebug/html/htmlPanel.js
index 0318c9f..ad09e2f 100644
--- a/extension/content/firebug/html/htmlPanel.js
+++ b/extension/content/firebug/html/htmlPanel.js
@@ -2262,6 +2262,19 @@ AttributeEditor.prototype = domplate(Firebug.InlineEditor.prototype,
var emptyAttr = {name: "", value: ""};
var sibling = insertWhere == "before" ? target.previousSibling : target;
return AttrTag.insertAfter({attr: emptyAttr}, sibling);
+ },
+
+ getInitialValue: function(target, 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);
+ }
+ return value;
}
});
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/firebug.git
More information about the Pkg-mozext-commits
mailing list