Skip to content

Instantly share code, notes, and snippets.

View groupsky's full-sized avatar
💭
I may be very slow to respond.

Geno Roupsky groupsky

💭
I may be very slow to respond.
  • Plovdiv/Bulgaria
View GitHub Profile
@groupsky
groupsky / min_jquery_version.js
Last active December 20, 2015 18:29 — forked from dshaw/min_jquery_version.js
Fix for jQuery version 1.10.0
function minVersion(version) {
var $vrs = window.jQuery.fn.jquery.split('.'),
min = version.split('.');
for (var i=0, len=$vrs.length; i<len; i++) {
console.log($vrs[i], min[i]);
if (min[i] && (+$vrs[i]) < (+min[i])) {
return false;
}
}
return true;