[Pkg-mozext-commits] [firebug] 37/48: Moved setting the state of the pretty-print button at the right place (related to issue 7305)
David Prévot
taffit at moszumanska.debian.org
Tue Jun 3 01:47:45 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository firebug.
commit 6794b8ba5f1841b15de9a2f2910a260cfac42d14
Author: Sebastian Zartner <sebastianzartner at gmail.com>
Date: Thu May 29 17:51:49 2014 +0200
Moved setting the state of the pretty-print button at the right place
(related to issue 7305)
---
extension/content/firebug/debugger/script/scriptPanel.js | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/extension/content/firebug/debugger/script/scriptPanel.js b/extension/content/firebug/debugger/script/scriptPanel.js
index 26c53d1..e6c61ef 100644
--- a/extension/content/firebug/debugger/script/scriptPanel.js
+++ b/extension/content/firebug/debugger/script/scriptPanel.js
@@ -550,9 +550,6 @@ ScriptPanel.prototype = Obj.extend(BasePanel,
if (sourceLink instanceof SourceLink)
this.showSource(sourceLink);
- if (object)
- this.setPrettyPrintState();
-
Events.dispatch(this.fbListeners, "onUpdateScriptLocation", [this, sourceLink]);
},
@@ -713,6 +710,8 @@ ScriptPanel.prototype = Obj.extend(BasePanel,
var sourceFile = SourceFile.getSourceFileByUrl(this.context, sourceLink.href);
var category = sourceFile.getCategory();
+ this.setPrettyPrintState();
+
// Display the source.
this.scriptView.showSource(lines.join(""), category);
--
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