Bug 1295171 - Reintroduce the old Actor/FrontClass constructors. r=jryans

Heintroduce the old Actor/FrontClass constructors.
This commit is contained in:
2016-08-22 16:25:57 +02:00
parent 0c6be0762e
commit fbdb0dae94
88 changed files with 209 additions and 179 deletions

View File

@@ -15,7 +15,7 @@ const { FrameActor } = require("devtools/server/actors/frame");
const { ObjectActor, createValueGrip, longStringGrip } = require("devtools/server/actors/object");
const { SourceActor, getSourceURL } = require("devtools/server/actors/source");
const { DebuggerServer } = require("devtools/server/main");
const { ActorClass } = require("devtools/shared/protocol");
const { ActorClassWithSpec } = require("devtools/shared/protocol");
const DevToolsUtils = require("devtools/shared/DevToolsUtils");
const flags = require("devtools/shared/flags");
const { assert, dumpn, update, fetch } = DevToolsUtils;
@@ -408,7 +408,7 @@ EventLoop.prototype = {
* An optional (for content debugging only) reference to the content
* window.
*/
const ThreadActor = ActorClass(threadSpec, {
const ThreadActor = ActorClassWithSpec(threadSpec, {
initialize: function (aParent, aGlobal) {
this._state = "detached";
this._frameActors = [];