[Pkg-mozext-commits] [firebug] 30/56: Get rid of __exposedProps__ in sourceEditor.js
David Prévot
taffit at moszumanska.debian.org
Wed Nov 19 21:01:44 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 7214466f7b89ff9285bfd910fd78ebd0203300b4
Author: Simon Lindholm <simon.lindholm10 at gmail.com>
Date: Wed Oct 22 23:08:25 2014 +0200
Get rid of __exposedProps__ in sourceEditor.js
---
extension/content/firebug/editor/sourceEditor.js | 25 +++---------------------
1 file changed, 3 insertions(+), 22 deletions(-)
diff --git a/extension/content/firebug/editor/sourceEditor.js b/extension/content/firebug/editor/sourceEditor.js
index abba40b..59383bb 100644
--- a/extension/content/firebug/editor/sourceEditor.js
+++ b/extension/content/firebug/editor/sourceEditor.js
@@ -1297,27 +1297,6 @@ LineHighlighter.prototype =
};
// ********************************************************************************************* //
-// Support for Debugging - Tracing
-
-/**
- * Expose FBTrace to the Firebug UI (panel.html). This help to debug problems
- * with CodeMirror, since tracing lines can be directly inserted into CM code.
- * See also {@SourceEditor.init} where the exposure happens.
- */
-var ExposedFBTrace =
-{
- sysout: function(msg, obj)
- {
- FBTrace.sysout(msg, obj);
- },
-
- __exposedProps__:
- {
- sysout: "r"
- }
-};
-
-// ********************************************************************************************* //
// Support for Debugging - Async script loader
function ScriptLoader(doc, callback)
@@ -1330,7 +1309,9 @@ function ScriptLoader(doc, callback)
// Expose FBTrace into the panel.html (and codemirror.js), so
// debugging is easier. Should *not* be part of the distribution.
var view = Wrapper.getContentView(doc.defaultView);
- view.FBTrace = ExposedFBTrace;
+ view.FBTrace = Wrapper.cloneIntoContentScope(view, {
+ sysout: function() { FBTrace.sysout.apply(FBTrace, arguments); }
+ });
}
/**
--
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