Use ol.inherits instead of goog.inherits
This commit is contained in:
@@ -102,7 +102,7 @@ ol.control.ScaleLine = function(opt_options) {
|
||||
|
||||
var render = options.render ? options.render : ol.control.ScaleLine.render;
|
||||
|
||||
goog.base(this, {
|
||||
ol.control.Control.call(this, {
|
||||
element: this.element_,
|
||||
render: render,
|
||||
target: options.target
|
||||
@@ -116,7 +116,7 @@ ol.control.ScaleLine = function(opt_options) {
|
||||
ol.control.ScaleLineUnits.METRIC);
|
||||
|
||||
};
|
||||
goog.inherits(ol.control.ScaleLine, ol.control.Control);
|
||||
ol.inherits(ol.control.ScaleLine, ol.control.Control);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user