From 4f26f145ae1b90f1b9da11598d618288b639cad1 Mon Sep 17 00:00:00 2001 From: ahocevar Date: Tue, 17 Jul 2018 14:20:48 +0200 Subject: [PATCH] Use extends and super for View --- src/ol/View.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/ol/View.js b/src/ol/View.js index 1e34fe7d4c..dfdf355f97 100644 --- a/src/ol/View.js +++ b/src/ol/View.js @@ -2,7 +2,7 @@ * @module ol/View */ import {DEFAULT_TILE_SIZE} from './tilegrid/common.js'; -import {getUid, inherits} from './util.js'; +import {getUid} from './util.js'; import {UNDEFINED} from './functions.js'; import {createExtent, none as centerNone} from './centerconstraint.js'; import BaseObject from './Object.js'; @@ -224,16 +224,15 @@ const DEFAULT_MIN_ZOOM = 0; * The *center constraint* is determined by the `extent` option. By * default the center is not constrained at all. * - * @extends {module:ol/Object} - * @api + * @api */ -class View { +class View extends BaseObject { /** * @param {module:ol/View~ViewOptions=} opt_options View options. */ constructor(opt_options) { - BaseObject.call(this); + super(); const options = assign({}, opt_options); @@ -1181,8 +1180,6 @@ class View { } } -inherits(View, BaseObject); - /** * @param {module:ol/View~ViewOptions} options View options.