Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove fbug patch

  • Loading branch information...
commit fce326a97e2c187e3788a2d5a4e9079b8da82286 1 parent a092ab5
@nightwing nightwing authored
Showing with 3 additions and 40 deletions.
  1. +3 −18 chrome/content/aceEditor.js
  2. +0 −22 chrome/content/patchUpFirebug.js
View
21 chrome/content/aceEditor.js
@@ -100,7 +100,6 @@ Firebug.Ace = {
return Firebug.largeCommandLineEditor;
};
Firebug.ConsolePanel.prototype.detach = this.detach
- this.loadFBugPatch()
},
detach: function(oldChrome, newChrome) {
@@ -118,13 +117,6 @@ Firebug.Ace = {
}
},
- loadFBugPatch: function() {
- var script = document.createElementNS("http://www.w3.org/1999/xhtml", "script");
- script.type = "text/javascript;version=1.8";
- script.src ='chrome://acebug/content/patchUpFirebug.js'
- document.documentElement.appendChild(script)
- },
-
showPanel: function(browser, panel) {
this.win1.startAce(null, this.getOptions());
this.showPanel = function(browser, panel) {
@@ -604,10 +596,9 @@ Firebug.largeCommandLineEditor = {
var lineNumber = error.lineNumber - loc.lineNumber;
var lines = source.split('\n');
var line = lines[lineNumber]||lines[lineNumber-1];
+ error.source = source
Firebug.Console.log(
- error.toString() + ' `' + line + '` @'+(lineNumber+cellStart)
- , null, "errorMessage", null, null
- , self.getConsoleSourceLink(lineNumber, lineNumber+cellStart, error.fileName)
+ error.toString() + ' `' + line + '` @'+(lineNumber+cellStart), null, "errorMessage"
);
} else
Firebug.Console.log(error, null, "errorMessage");
@@ -616,15 +607,9 @@ Firebug.largeCommandLineEditor = {
var lineNumber = error.row+this.cell.bodyStart
Firebug.Console.log(
- error.text + ' `' + error.source + '` @'+ lineNumber,
- null, "errorMessage", null, null,
- Firebug.largeCommandLineEditor.getConsoleSourceLink(lineNumber, error.source)
+ error.text + ' `' + error.source + '` @'+ lineNumber, null, "errorMessage"
);
},
- getConsoleSourceLink: function(line, content, href) {
- var SourceLink = require("firebug/js/sourceLink").SourceLink
- return new SourceLink(href || "file:///", line + 1, "ace", content)
- },
onSaveCommand: function(option) {
var path, keepCurrentPath
if (option == "saveAs") {
View
22 chrome/content/patchUpFirebug.js
@@ -1,22 +0,0 @@
-;(function(){
- var t = Firebug.Reps.SourceLink.inspectObject
- Firebug.Reps.SourceLink.inspectObject
- Firebug.Reps.SourceLink.inspectObject = function(sourceLink, context){
- if (sourceLink.type == "ace") {
- // Firebug.chrome.selectPanel("console")
- var editor = Firebug.Ace.win2.editor
- var row = sourceLink.line - 1
- var lineText = editor.session.getLine(row)
-
- if (sourceLink.object && lineText.indexOf(sourceLink.object) != -1)
- return editor.gotoLine(row)
- }
- Firebug.Reps.SourceLink.inspectObject.original(sourceLink, context)
- }
- Firebug.Reps.SourceLink.inspectObject.original = t
- t = null
-})()
-
-
-
-
Please sign in to comment.
Something went wrong with that request. Please try again.