Fix #259: Avoid collision when using $.ua

This commit is contained in:
Faisal Salman 2018-05-23 20:28:47 +07:00
parent 1493587742
commit 55ffb10a5f

View File

@ -1077,7 +1077,7 @@
// jQuery always exports to global scope, unless jQuery.noConflict(true) is used,
// and we should catch that.
var $ = window && (window.jQuery || window.Zepto);
if (typeof $ !== UNDEF_TYPE) {
if (typeof $ !== UNDEF_TYPE && !$.ua) {
var parser = new UAParser();
$.ua = parser.getResult();
$.ua.get = function () {