From b4c625c7976b042d3c62df23f3dc21077042791a Mon Sep 17 00:00:00 2001 From: "Cesar J. Alaniz" Date: Thu, 30 Aug 2012 11:25:44 -0700 Subject: [PATCH] Export to modules first, place at root. --- bowser.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bowser.js b/bowser.js index 951845d..dde58fc 100644 --- a/bowser.js +++ b/bowser.js @@ -4,8 +4,8 @@ * MIT License | (c) Dustin Diaz 2011 */ !function (name, definition) { - if (typeof define == 'function') define(definition) - else if (typeof module != 'undefined' && module.exports) module.exports['browser'] = definition() + if (typeof module != 'undefined' && module.exports) module.exports = definition() + else if (typeof define == 'function') define(definition) else this[name] = definition() }('bowser', function () { /**