Named exports from ol/obj

This commit is contained in:
Frederic Junod
2018-01-16 14:14:17 +01:00
parent 40f97eed85
commit 31e30d28b7
60 changed files with 174 additions and 183 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ import {getUid, inherits} from '../index.js';
import BaseObject from '../Object.js';
import BaseLayer from '../layer/Base.js';
import LayerProperty from '../layer/Property.js';
import _ol_obj_ from '../obj.js';
import {assign} from '../obj.js';
import RenderEventType from '../render/EventType.js';
import SourceState from '../source/State.js';
@@ -35,7 +35,7 @@ import SourceState from '../source/State.js';
*/
const Layer = function(options) {
const baseOptions = _ol_obj_.assign({}, options);
const baseOptions = assign({}, options);
delete baseOptions.source;
BaseLayer.call(this, /** @type {olx.layer.BaseOptions} */ (baseOptions));