Rename web-worker → allow-web-workers for clarity.
The former was unclear about how the dependency would relate to web workers. Would it only be available to workers? Would it automatically spin up a worker? `allow-web-workers` isn't 100% perfect, but it implies the correct answers to the questions above (no and no) and isn't too long.
This commit is contained in:
@@ -5,7 +5,7 @@ class Dependency
|
||||
// TODO: Is "forceLoad" the best name? Implement "whole-archive" on GCC
|
||||
public var embed:Bool;
|
||||
public var forceLoad:Bool;
|
||||
public var webWorker:Bool;
|
||||
public var allowWebWorkers:Bool;
|
||||
public var name:String;
|
||||
public var path:String;
|
||||
|
||||
|
||||
@@ -1662,9 +1662,9 @@ class ProjectXMLParser extends HXProject
|
||||
dependency.forceLoad = parseBool(element.att.resolve("force-load"));
|
||||
}
|
||||
|
||||
if (element.has.resolve("web-worker"))
|
||||
if (element.has.resolve("allow-web-workers"))
|
||||
{
|
||||
dependency.webWorker = parseBool(element.att.resolve("web-worker"));
|
||||
dependency.allowWebWorkers = parseBool(element.att.resolve("allow-web-workers"));
|
||||
}
|
||||
|
||||
var i = dependencies.length;
|
||||
|
||||
Reference in New Issue
Block a user