Skip to content

Commit

Permalink
fix issue #2
Browse files Browse the repository at this point in the history
  • Loading branch information
hgoebl committed Dec 27, 2013
1 parent 7f0adbb commit 3463355
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
2 changes: 1 addition & 1 deletion generate/mobile-detect.template.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@
* @global
*/
function MobileDetect(userAgent, maxPhoneWidth) {
this.ua = userAgent;
this.ua = userAgent || '';
this._cache = {};
this.maxPhoneWidth = maxPhoneWidth || 650;
}
Expand Down
4 changes: 2 additions & 2 deletions mobile-detect.js
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@
* @global
*/
function MobileDetect(userAgent, maxPhoneWidth) {
this.ua = userAgent;
this.ua = userAgent || '';
this._cache = {};
this.maxPhoneWidth = maxPhoneWidth || 650;
}
Expand Down Expand Up @@ -539,7 +539,7 @@
* Windows Phone, Windows CE, Windows NT, Symbian, webOS</tt><br>
*
* @returns {Number} the version as float or <tt>NaN</tt> if User-Agent doesn't contain this version.
* Be careful when comparing this value w/ '==' operator!
* Be careful when comparing this value with '==' operator!
* @function MobileDetect#version
*/
version: function (key) {
Expand Down
Loading

0 comments on commit 3463355

Please sign in to comment.