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/color
*/
import _ol_asserts_ from './asserts.js';
import {assert} from './asserts.js';
import _ol_math_ from './math.js';
var _ol_color_ = {};
@@ -173,7 +173,7 @@ _ol_color_.fromStringInternal_ = function(s) {
parts.push(1);
color = _ol_color_.normalize(parts);
} else {
_ol_asserts_.assert(false, 14); // Invalid color
assert(false, 14); // Invalid color
}
return /** @type {ol.Color} */ (color);
};