Fix: don't define the RequireJs module with name

If we define it with name it becomes less portable and breaks code that used version `0.7.10`.
This is not correct according to **semver**, as this is a `patch` only which should not break APIs.

I think defining the module with a name should be a responsibility of build tools / optimisation tools.
This commit is contained in:
Levente Balogh 2016-11-07 10:34:08 +01:00 committed by GitHub
parent 10775bd17c
commit f28f87c412

View File

@ -862,7 +862,7 @@
} else { } else {
// requirejs env (optional) // requirejs env (optional)
if (typeof(define) === FUNC_TYPE && define.amd) { if (typeof(define) === FUNC_TYPE && define.amd) {
define("ua-parser-js", [], function () { define(function () {
return UAParser; return UAParser;
}); });
} else { } else {