Skip to content

Commit

Permalink
Merge pull request #1527 from Aviture/master
Browse files Browse the repository at this point in the history
Fix for CompositeDynamicObjectCollection artifacts
  • Loading branch information
mramato committed Mar 3, 2014
2 parents 4fb6207 + 0bfd0f2 commit 85f8f26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/DynamicScene/CompositeDynamicObjectCollection.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ define(['../Core/createGuid',
var composite = that._composite;
var compositeObject = composite.getById(id);
var compositeProperty = compositeObject[propertyName];
var collections = that._collectionsCopy;
var collections = that._collections;
var collectionsLength = collections.length;
for (var q = collectionsLength - 1; q >= 0; q--) {
var object = collections[q].getById(dynamicObject.id);
Expand Down Expand Up @@ -63,7 +63,7 @@ define(['../Core/createGuid',
unsubscribeFromProperty(eventHash, collectionId, dynamicObject, propertyName);
subscribeToProperty(that, eventHash, collectionId, dynamicObject, propertyName, dynamicObject[propertyName]);

var collections = that._collectionsCopy;
var collections = that._collections;
var collectionsLength = collections.length;
var firstTime = true;
for (var q = collectionsLength - 1; q >= 0; q--) {
Expand Down

0 comments on commit 85f8f26

Please sign in to comment.