[Pkg-mozext-commits] [firebug] 36/82: Add a tooltip to the "(closure)" text
David Prévot
taffit at moszumanska.debian.org
Mon Mar 31 22:45:38 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to tag fbtest-1.11.2
in repository firebug.
commit f76ce0244de29e311f66c041436c472005f0619d
Author: Simon Lindholm <simon.lindholm10 at gmail.com>
Date: Tue Jan 1 04:07:48 2013 +0100
Add a tooltip to the "(closure)" text
It describes the use of ".%", for discoverability.
---
extension/content/firebug/dom/domPanel.js | 8 +++++---
extension/locale/en-US/firebug.properties | 3 +++
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/extension/content/firebug/dom/domPanel.js b/extension/content/firebug/dom/domPanel.js
index eed73f1..f4a95a4 100644
--- a/extension/content/firebug/dom/domPanel.js
+++ b/extension/content/firebug/dom/domPanel.js
@@ -76,14 +76,14 @@ const DirTablePlate = domplate(Firebug.Rep,
disabledBreakpoint: "$member.disabledBreakpoint"},
TD({"class": "memberHeaderCell"},
DIV({"class": "sourceLine memberRowHeader", onclick: "$onClickRowHeader"},
- " "
+ " "
)
),
TD({"class": "memberLabelCell", style: "padding-left: $member.indent\\px",
role: "presentation"},
- DIV({"class": "memberLabel $member.type\\Label"},
+ DIV({"class": "memberLabel $member.type\\Label", title: "$member.title"},
SPAN({"class": "memberLabelPrefix"}, "$member.prefix"),
- SPAN("$member.name")
+ SPAN({title: "$member.title"}, "$member.name")
)
),
TD({"class": "memberValueCell", $readOnly: "$member.readOnly",
@@ -799,6 +799,7 @@ Firebug.DOMBasePanel.prototype = Obj.extend(Firebug.Panel,
return;
var name = (isScope ? Locale.$STR("dom.scopeParentName") : Locale.$STR("dom.scopeName"));
+ var title = (isScope ? undefined : Locale.$STR("dom.tip.scopeName"));
var rep = Firebug.getRep(wrapper);
var tag = rep.shortTag ? rep.shortTag : rep.tag;
@@ -815,6 +816,7 @@ Firebug.DOMBasePanel.prototype = Obj.extend(Firebug.Panel,
hasChildren: true,
tag: tag,
prefix: "",
+ title: title,
readOnly: true,
deletable: false,
ignoredPath: true
diff --git a/extension/locale/en-US/firebug.properties b/extension/locale/en-US/firebug.properties
index 2d53464..cf8fd74 100644
--- a/extension/locale/en-US/firebug.properties
+++ b/extension/locale/en-US/firebug.properties
@@ -228,6 +228,9 @@ dom.scopeName=(closure)
# LOCALIZATION NOTE (dom.scopeParentName): Used within the DOM panel to name the fake property
# that contains the parent of a closure scope.
dom.scopeParentName=(parent scope)
+# LOCALIZATION NOTE (dom.tip.scopeName): Used within the DOM panel as a tooltip when hovering
+# "(closure)".
+dom.tip.scopeName=Use <func>.%closureVariable to access in the Command Line
# LOCALIZATION NOTE (firebug.reps.declarativeScope, firebug.reps.objectScope, firebug.reps.withScope):
# Labels shown to describe different types of closure scopes.
firebug.reps.declarativeScope=[declarative scope]
--
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