Skip to content

Commit

Permalink
Merge pull request darcyclarke#18 from allbuttonspressed/master
Browse files Browse the repository at this point in the history
fixed global variable assignment (also causes problems with some minifiers)
  • Loading branch information
darcyclarke committed Dec 2, 2013
2 parents 7a65c30 + b548e60 commit 6f43a8c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build/detect.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@
var device_parsers = parsers('device');

// Set Agent
var agent = a = new UserAgent();
var a = new UserAgent();

// Remember the original user agent string
a.source = ua;
Expand Down
4 changes: 2 additions & 2 deletions detect.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @version 2.2.0
* @author Darcy Clarke
* @url http://darcyclarke.me
* @createdat Fri Jul 05 2013 18:08:27 GMT-0700 (PDT)
* @createdat Mon Dec 02 2013 14:47:23 GMT+0100 (W. Europe Standard Time)
*
* Based on UA-Parser (https://github.com/tobie/ua-parser) by Tobie Langel
*
Expand Down Expand Up @@ -1103,7 +1103,7 @@
// Devices Parsed
var device_parsers = parsers("device");
// Set Agent
var agent = a = new UserAgent();
var a = new UserAgent();
// Remember the original user agent string
a.source = ua;
// Set Browser
Expand Down
Loading

0 comments on commit 6f43a8c

Please sign in to comment.