diff --git a/CHANGELOG.md b/CHANGELOG.md index f43eef5..2dae197 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Bowser Changelog +### 1.4.4 (August 10, 2016) + +- [FIX] Fix AMD `define` call — pass name to the function + ### 1.4.3 (July 27, 2016) - [FIX] Fix error `Object doesn't support this property or method` on IE8 diff --git a/package.json b/package.json index d4fb1ca..5b9e55a 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "sniff", "detection" ], - "version": "1.4.3", + "version": "1.4.4", "homepage": "https://github.com/ded/bowser", "author": "Dustin Diaz (http://dustindiaz.com)", "main": "./src/bowser.js", diff --git a/src/bowser.js b/src/bowser.js index c496a73..676a64a 100644 --- a/src/bowser.js +++ b/src/bowser.js @@ -6,7 +6,7 @@ !function (name, definition) { if (typeof module != 'undefined' && module.exports) module.exports = definition() - else if (typeof define == 'function' && define.amd) define(definition) + else if (typeof define == 'function' && define.amd) define(name, definition) else this[name] = definition() }('bowser', function () { /**