Rename _ol_Object_ to BaseObject

This commit is contained in:
Tim Schaub
2018-01-08 10:03:31 -07:00
parent 35db8721b2
commit 24dd0ca924
21 changed files with 95 additions and 95 deletions

View File

@@ -2,7 +2,7 @@
* @module ol/layer/Base
*/
import {inherits} from '../index.js';
import _ol_Object_ from '../Object.js';
import BaseObject from '../Object.js';
import _ol_layer_Property_ from '../layer/Property.js';
import {clamp} from '../math.js';
import _ol_obj_ from '../obj.js';
@@ -23,7 +23,7 @@ import _ol_obj_ from '../obj.js';
*/
var _ol_layer_Base_ = function(options) {
_ol_Object_.call(this);
BaseObject.call(this);
/**
* @type {Object.<string, *>}
@@ -60,7 +60,7 @@ var _ol_layer_Base_ = function(options) {
};
inherits(_ol_layer_Base_, _ol_Object_);
inherits(_ol_layer_Base_, BaseObject);
/**

View File

@@ -4,7 +4,7 @@
import {getUid, inherits} from '../index.js';
import _ol_Collection_ from '../Collection.js';
import CollectionEventType from '../CollectionEventType.js';
import _ol_Object_ from '../Object.js';
import BaseObject from '../Object.js';
import ObjectEventType from '../ObjectEventType.js';
import {assert} from '../asserts.js';
import _ol_events_ from '../events.js';
@@ -59,7 +59,7 @@ var _ol_layer_Group_ = function(opt_options) {
this.listenerKeys_ = {};
_ol_events_.listen(this,
_ol_Object_.getChangeEventType(Property.LAYERS),
BaseObject.getChangeEventType(Property.LAYERS),
this.handleLayersChanged_, this);
if (layers) {

View File

@@ -3,7 +3,7 @@
*/
import _ol_events_ from '../events.js';
import {inherits} from '../index.js';
import _ol_Object_ from '../Object.js';
import BaseObject from '../Object.js';
import {createCanvasContext2D} from '../dom.js';
import _ol_layer_Vector_ from '../layer/Vector.js';
import {clamp} from '../math.js';
@@ -81,7 +81,7 @@ var Heatmap = function(opt_options) {
this.styleCache_ = null;
_ol_events_.listen(this,
_ol_Object_.getChangeEventType(Property.GRADIENT),
BaseObject.getChangeEventType(Property.GRADIENT),
this.handleGradientChanged_, this);
this.setGradient(options.gradient ? options.gradient : DEFAULT_GRADIENT);
@@ -91,10 +91,10 @@ var Heatmap = function(opt_options) {
this.setRadius(options.radius !== undefined ? options.radius : 8);
_ol_events_.listen(this,
_ol_Object_.getChangeEventType(Property.BLUR),
BaseObject.getChangeEventType(Property.BLUR),
this.handleStyleChanged_, this);
_ol_events_.listen(this,
_ol_Object_.getChangeEventType(Property.RADIUS),
BaseObject.getChangeEventType(Property.RADIUS),
this.handleStyleChanged_, this);
this.handleStyleChanged_();

View File

@@ -4,7 +4,7 @@
import _ol_events_ from '../events.js';
import EventType from '../events/EventType.js';
import {getUid, inherits} from '../index.js';
import _ol_Object_ from '../Object.js';
import BaseObject from '../Object.js';
import _ol_layer_Base_ from '../layer/Base.js';
import _ol_layer_Property_ from '../layer/Property.js';
import _ol_obj_ from '../obj.js';
@@ -63,7 +63,7 @@ var _ol_layer_Layer_ = function(options) {
}
_ol_events_.listen(this,
_ol_Object_.getChangeEventType(_ol_layer_Property_.SOURCE),
BaseObject.getChangeEventType(_ol_layer_Property_.SOURCE),
this.handleSourcePropertyChange_, this);
var source = options.source ? options.source : null;