1
0
mirror of https://github.com/lancedikson/bowser synced 2026-03-02 03:40:27 +00:00

- export browser as an object and not a function

- bump package
This commit is contained in:
Dustin Diaz
2011-05-02 13:33:54 -07:00
parent 1e649921d7
commit 141bf0bcec
4 changed files with 15 additions and 9 deletions

View File

@@ -18,11 +18,11 @@
info;
function bowser() {
info = info ? info : detect();
return info;
info = info ? info : detect();
return info;
}
function detect() {
function detect() {
if (ie) {
return {
@@ -64,7 +64,7 @@
}
typeof module !== 'undefined' && module.exports ?
(module.exports.browser = bowser) :
(module.exports.browser = bowser()) :
(context.bowser = bowser);
}(this);