Named export for ol/asserts

This commit is contained in:
Frederic Junod
2017-12-17 18:10:59 +01:00
parent 7202573f82
commit 9349ba5403
33 changed files with 89 additions and 92 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
/**
* @module ol/Feature
*/
import _ol_asserts_ from './asserts.js';
import {assert} from './asserts.js';
import _ol_events_ from './events.js';
import EventType from './events/EventType.js';
import {inherits} from './index.js';
@@ -307,7 +307,7 @@ _ol_Feature_.createStyleFunction = function(obj) {
if (Array.isArray(obj)) {
styles = obj;
} else {
_ol_asserts_.assert(obj instanceof _ol_style_Style_,
assert(obj instanceof _ol_style_Style_,
41); // Expected an `ol.style.Style` or an array of `ol.style.Style`
styles = [obj];
}