Comment nit

This commit is contained in:
Tim Mickel 2016-09-02 09:47:27 -04:00
parent 020250e258
commit ae89cfbb6b

View file

@ -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);