Rename _ol_AssertionError_ to AssertionError

This commit is contained in:
Frederic Junod
2017-12-16 08:25:23 +01:00
parent e3bf72f90e
commit 3f3e412d10
4 changed files with 12 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
/**
* @module ol/asserts
*/
import _ol_AssertionError_ from './AssertionError.js';
import AssertionError from './AssertionError.js';
var _ol_asserts_ = {};
@@ -11,7 +11,7 @@ var _ol_asserts_ = {};
*/
_ol_asserts_.assert = function(assertion, errorCode) {
if (!assertion) {
throw new _ol_AssertionError_(errorCode);
throw new AssertionError(errorCode);
}
};
export default _ol_asserts_;