mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-25 07:22:33 -05:00
Comment nit
This commit is contained in:
parent
020250e258
commit
ae89cfbb6b
1 changed files with 2 additions and 1 deletions
|
@ -125,7 +125,8 @@ VirtualMachine.prototype.loadProject = function (json) {
|
||||||
* @param {string} targetId Id of target to set as editing.
|
* @param {string} targetId Id of target to set as editing.
|
||||||
*/
|
*/
|
||||||
VirtualMachine.prototype.setEditingTarget = function (targetId) {
|
VirtualMachine.prototype.setEditingTarget = function (targetId) {
|
||||||
if (targetId == this.editingTarget.id) { // No change.
|
// Has the target id changed? If not, exit.
|
||||||
|
if (targetId == this.editingTarget.id) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var target = this.runtime.getTargetById(targetId);
|
var target = this.runtime.getTargetById(targetId);
|
||||||
|
|
Loading…
Reference in a new issue