#338 changed isLink check to check whether location is set

This commit is contained in:
Henry 2015-12-03 18:41:13 -08:00
parent c038ccd0d2
commit 461cc59b3e

View File

@ -53,8 +53,8 @@ define(
parent.getModel().composition.push(child.getId());
//Check if the object being composed is a link
if (!child.getCapability("location").isLink()) {
//If a location is not specified, set it.
if (!child.getModel().location) {
child.getModel().location = parent.getId();
}
}