Merge pull request #3298 from fredj/source-object

Make ol.source.Source inherit from ol.Object
This commit is contained in:
Frédéric Junod
2015-03-02 15:07:33 +01:00

View File

@@ -3,7 +3,7 @@ goog.provide('ol.source.State');
goog.require('goog.events.EventType'); goog.require('goog.events.EventType');
goog.require('ol.Attribution'); goog.require('ol.Attribution');
goog.require('ol.Observable'); goog.require('ol.Object');
goog.require('ol.proj'); goog.require('ol.proj');
@@ -37,7 +37,7 @@ ol.source.SourceOptions;
* Base class for {@link ol.layer.Layer} sources. * Base class for {@link ol.layer.Layer} sources.
* *
* @constructor * @constructor
* @extends {ol.Observable} * @extends {ol.Object}
* @fires change Triggered when the state of the source changes. * @fires change Triggered when the state of the source changes.
* @param {ol.source.SourceOptions} options Source options. * @param {ol.source.SourceOptions} options Source options.
* @api stable * @api stable
@@ -73,7 +73,7 @@ ol.source.Source = function(options) {
options.state : ol.source.State.READY; options.state : ol.source.State.READY;
}; };
goog.inherits(ol.source.Source, ol.Observable); goog.inherits(ol.source.Source, ol.Object);
/** /**