Use ol.inherits instead of goog.inherits

This commit is contained in:
Frederic Junod
2016-04-07 16:26:11 +02:00
parent 072728b083
commit e289bfbb7d
166 changed files with 448 additions and 452 deletions
+2 -2
View File
@@ -100,7 +100,7 @@ ol.style.Circle = function(opt_options) {
var snapToPixel = options.snapToPixel !== undefined ?
options.snapToPixel : true;
goog.base(this, {
ol.style.Image.call(this, {
opacity: 1,
rotateWithView: false,
rotation: 0,
@@ -109,7 +109,7 @@ ol.style.Circle = function(opt_options) {
});
};
goog.inherits(ol.style.Circle, ol.style.Image);
ol.inherits(ol.style.Circle, ol.style.Image);
/**
+4 -4
View File
@@ -185,7 +185,7 @@ ol.style.Icon = function(opt_options) {
var snapToPixel = options.snapToPixel !== undefined ?
options.snapToPixel : true;
goog.base(this, {
ol.style.Image.call(this, {
opacity: opacity,
rotation: rotation,
scale: scale,
@@ -194,7 +194,7 @@ ol.style.Icon = function(opt_options) {
});
};
goog.inherits(ol.style.Icon, ol.style.Image);
ol.inherits(ol.style.Icon, ol.style.Image);
/**
@@ -380,7 +380,7 @@ ol.style.Icon.prototype.unlistenImageChange = function(listener, thisArg) {
ol.style.IconImage_ = function(image, src, size, crossOrigin, imageState,
color) {
goog.base(this);
ol.events.EventTarget.call(this);
/**
* @private
@@ -446,7 +446,7 @@ ol.style.IconImage_ = function(image, src, size, crossOrigin, imageState,
}
};
goog.inherits(ol.style.IconImage_, ol.events.EventTarget);
ol.inherits(ol.style.IconImage_, ol.events.EventTarget);
/**
+2 -2
View File
@@ -131,7 +131,7 @@ ol.style.RegularShape = function(options) {
var rotateWithView = options.rotateWithView !== undefined ?
options.rotateWithView : false;
goog.base(this, {
ol.style.Image.call(this, {
opacity: 1,
rotateWithView: rotateWithView,
rotation: options.rotation !== undefined ? options.rotation : 0,
@@ -140,7 +140,7 @@ ol.style.RegularShape = function(options) {
});
};
goog.inherits(ol.style.RegularShape, ol.style.Image);
ol.inherits(ol.style.RegularShape, ol.style.Image);
/**