Added Zepto support (aka jQuery)

Added Zepto support (aka jQuery)

http://zeptojs.com/
This commit is contained in:
Dumitru Uzun 2014-07-30 20:41:23 +03:00
parent b60ed8c0c6
commit 86387a2a39

View File

@ -657,9 +657,9 @@
return UAParser;
});
}
// jQuery specific (optional)
if (typeof(window.jQuery) !== UNDEF_TYPE) {
var $ = window.jQuery;
// jQuery/Zepto specific (optional)
var $ = window.jQuery || window.Zepto;
if (typeof($) !== UNDEF_TYPE) {
var parser = new UAParser();
$.ua = parser.getResult();
$.ua.get = function() {