app/assets/javascripts/DynamicScene/DataSourceCollection.js in cesium-0.24.1 vs app/assets/javascripts/DynamicScene/DataSourceCollection.js in cesium-0.25.0

- old
+ new

@@ -36,13 +36,16 @@ * @param {DataSource} dataSource The data source to add. * * @exception {DeveloperError} dataSource is required. */ DataSourceCollection.prototype.add = function(dataSource) { + //>>includeStart('debug', pragmas.debug); if (!defined(dataSource)) { throw new DeveloperError('dataSource is required.'); } + //>>includeEnd('debug'); + this._dataSources.push(dataSource); this.dataSourceAdded.raiseEvent(this, dataSource); }; /** @@ -121,12 +124,14 @@ * * @exception {DeveloperError} index is required. * @exception {DeveloperError} This object was destroyed, i.e., destroy() was called. */ DataSourceCollection.prototype.get = function(index) { + //>>includeStart('debug', pragmas.debug); if (!defined(index)) { throw new DeveloperError('index is required.'); } + //>>includeEnd('debug'); return this._dataSources[index]; }; /** \ No newline at end of file