mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-06-10 20:41:19 -04:00
Merge 28dc1ea8e7
into f207757ef0
This commit is contained in:
commit
7acee2369f
1 changed files with 2 additions and 0 deletions
|
@ -836,6 +836,7 @@ class Runtime extends EventEmitter {
|
|||
* Create a context ("args") object for use with `formatMessage` on messages which might be target-specific.
|
||||
* @param {Target} [target] - the target to use as context. If a target is not provided, default to the current
|
||||
* editing target or the stage.
|
||||
* @returns {object} - the context object.
|
||||
*/
|
||||
makeMessageContextForTarget (target) {
|
||||
const context = {};
|
||||
|
@ -845,6 +846,7 @@ class Runtime extends EventEmitter {
|
|||
TargetType.STAGE :
|
||||
TargetType.SPRITE;
|
||||
}
|
||||
return context;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue