Bug 1226661 - DevTools client JSM global tweak for B2G. r=ochameau

This commit is contained in:
J. Ryan Stinnett 2015-11-18 23:24:54 -06:00
parent b15fc8df78
commit 5dfb0fb402
9 changed files with 14 additions and 4 deletions

View File

@ -61,4 +61,6 @@ function BrowserLoader(baseURI, window) {
};
}
EXPORTED_SYMBOLS = ["BrowserLoader"];
this.BrowserLoader = BrowserLoader;
this.EXPORTED_SYMBOLS = ["BrowserLoader"];

View File

@ -172,7 +172,7 @@ function editableItem(options, callback) {
};
}
exports.editableItem = this.editableItem;
exports.editableItem = editableItem;
/*
* Various API consumers (especially tests) sometimes want to grab the

View File

@ -128,6 +128,7 @@ function AbstractTreeItem({ parent, level }) {
EventEmitter.decorate(this);
}
}
this.AbstractTreeItem = AbstractTreeItem;
AbstractTreeItem.prototype = {
_containerNode: null,

View File

@ -38,6 +38,7 @@ function SimpleListWidget(aNode) {
ViewHelpers.delegateWidgetAttributeMethods(this, aNode);
ViewHelpers.delegateWidgetEventMethods(this, aNode);
}
this.SimpleListWidget = SimpleListWidget;
SimpleListWidget.prototype = {
/**

View File

@ -65,6 +65,7 @@ function VariablesViewController(aView, aOptions = {}) {
this.view = aView;
this.view.controller = this;
}
this.VariablesViewController = VariablesViewController;
VariablesViewController.prototype = {
/**
@ -734,7 +735,7 @@ VariablesViewController.attach = function(aView, aOptions) {
/**
* Utility functions for handling stackframes.
*/
var StackFrameUtils = {
var StackFrameUtils = this.StackFrameUtils = {
/**
* Create a textual representation for the specified stack frame
* to display in the stackframes container.

View File

@ -82,6 +82,7 @@ function StyleEditorUI(debuggee, target, panelDoc) {
this._prefObserver.on(PREF_ORIG_SOURCES, this._onNewDocument);
this._prefObserver.on(PREF_MEDIA_SIDEBAR, this._onMediaPrefChanged);
}
this.StyleEditorUI = StyleEditorUI;
StyleEditorUI.prototype = {
/**

View File

@ -5,7 +5,7 @@
"use strict";
this.EXPORTED_SYMBOLS = ["StyleSheetEditor", "prettifyCSS"];
this.EXPORTED_SYMBOLS = ["StyleSheetEditor"];
const Cc = Components.classes;
const Ci = Components.interfaces;
@ -130,6 +130,7 @@ function StyleSheetEditor(styleSheet, win, file, isNew, walker, highlighter) {
this.savedFile = file;
this.linkCSSFile();
}
this.StyleSheetEditor = StyleSheetEditor;
StyleSheetEditor.prototype = {
/**

View File

@ -68,6 +68,7 @@ var template = function(node, data, options) {
if (typeof exports !== 'undefined') {
exports.template = template;
}
this.template = template;
/**
* Helper for the places where we need to act asynchronously and keep track of

View File

@ -109,3 +109,5 @@ var ShortcutUtils = {
};
Object.freeze(ShortcutUtils);
this.ShortcutUtils = ShortcutUtils;