Do not provide an AMD environment to ol.ext modules

This fixes issues with ol.source.Vector being unable to use ol.ext.rbush,
but it also means that potential future external modules without node
module loader support will not work. If we ever depend on such a module,
we can replace "var define;" with a minimal AMD define shim.
This commit is contained in:
Andreas Hocevar
2015-07-17 18:07:39 +02:00
parent 10b4aa1bab
commit 80c4809aee

View File

@@ -50,6 +50,7 @@ function wrapModule(mod, callback) {
'(function() {\n' +
'var exports = {};\n' +
'var module = {exports: exports};\n' +
'var define;\n' +
'/**\n' +
' * @fileoverview\n' +
' * @suppress {accessControls, ambiguousFunctionDecl, ' +