Skip to content

Commit

Permalink
fix leaked globals
Browse files Browse the repository at this point in the history
  • Loading branch information
nightwing committed Aug 13, 2011
1 parent 0ac1bb8 commit c8a697e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions chrome/content/aceEditor.js
Expand Up @@ -17,7 +17,7 @@ Firebug.Ace = {
this.win2 = win2Wrapped.wrappedJSObject;

var browser = FBL.$("fbAceBrowser1");
win1Wrapped = browser.contentWindow;
var win1Wrapped = browser.contentWindow;
this.win1 = win1Wrapped.wrappedJSObject;

this.win1.startAcebugAutocompleter =
Expand Down Expand Up @@ -226,7 +226,7 @@ Firebug.Ace = {
// try to set initial file
if (session.filePath) {
try{
file = ios.newURI(session.filePath, null, null);
var file = ios.newURI(session.filePath, null, null);
file = file.QueryInterface(Ci.nsIFileURL).file;
fp.displayDirectory = file.parent;
var name = file.leafName;
Expand All @@ -245,7 +245,7 @@ Firebug.Ace = {
},

loadFile: function(editor) {
var result, file, name, result,
var result, name, result,
session = editor.session, ext = session.extension,
ios = Cc['@mozilla.org/network/io-service;1'].getService(Ci.nsIIOService);
var fp = this.initFilePicker(session, 'open');
Expand Down Expand Up @@ -665,7 +665,7 @@ var gClipboardHelper = Firebug.Ace.gClipboardHelper = {
};
/***********************************************************/

$ACESTR = function(name) {
var $ACESTR = function(name) {
return FBL.$STR(name, "strings_acebug");
};

Expand Down

0 comments on commit c8a697e

Please sign in to comment.