From f28f87c41262d940c1a3cf73ecb9f2a623173129 Mon Sep 17 00:00:00 2001 From: Levente Balogh Date: Mon, 7 Nov 2016 10:34:08 +0100 Subject: [PATCH] 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. --- src/ua-parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ua-parser.js b/src/ua-parser.js index 43f395a..0820259 100644 --- a/src/ua-parser.js +++ b/src/ua-parser.js @@ -862,7 +862,7 @@ } else { // requirejs env (optional) if (typeof(define) === FUNC_TYPE && define.amd) { - define("ua-parser-js", [], function () { + define(function () { return UAParser; }); } else {