bruce-cesium 0.4.3 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1885,9 +1885,14 @@
1885
1885
  }
1886
1886
  this.addons[entityId] = [];
1887
1887
  };
1888
- Register.prototype.Select = function (id) {
1888
+ Register.prototype.Select = function (id, refreshIfSelected) {
1889
+ if (refreshIfSelected === void 0) { refreshIfSelected = false; }
1890
+ var doSelect = refreshIfSelected;
1889
1891
  if (this.selectedIds.indexOf(id) === -1) {
1890
1892
  this.selectedIds.push(id);
1893
+ doSelect = true;
1894
+ }
1895
+ if (doSelect) {
1891
1896
  var regos = this.rego[id];
1892
1897
  if (regos) {
1893
1898
  for (var i = 0; i < regos.length; i++) {