Skip to content

Instantly share code, notes, and snippets.

View javamad's full-sized avatar

Terry Doyle javamad

View GitHub Profile
@javamad
javamad / gist:2001e2e3725ec4b07282
Created June 28, 2015 16:19
Hi, I was trying this but it doesn't work with some combinations ... so I came up with this variation: (I multiply the major version by 1000 to cater for having minor versions that go beyond 9 )
function minVersion(version) {
//console.log('minVersion:: testing for jquery minimum of ' + version );
if(typeof window.jQuery == 'undefined'){
console.log('minVersion:: no jquery found ...');
return false;
}
var vrs = window.jQuery.fn.jquery.split('.'),
min = version.split('.');