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

View File

@@ -3,7 +3,7 @@
*/
import {inherits} from '../index.js';
import _ol_Object_ from '../Object.js';
import _ol_asserts_ from '../asserts.js';
import {assert} from '../asserts.js';
import Control from '../control/Control.js';
import ScaleLineUnits from '../control/ScaleLineUnits.js';
import _ol_css_ from '../css.js';
@@ -237,7 +237,7 @@ ScaleLine.prototype.updateElement_ = function() {
pointResolution /= 1609.3472;
}
} else {
_ol_asserts_.assert(false, 33); // Invalid units
assert(false, 33); // Invalid units
}
var i = 3 * Math.floor(