src/js/init.js
author veltr
Wed, 15 May 2013 16:22:37 +0200
changeset 1000 91023037f841
parent 998 9521347ede1d
child 1002 a86208b60c91
permissions -rw-r--r--
check jQuery and Underscore versions

/* Initialization of the namespace */

if (typeof window.IriSP === "undefined") {
    window.IriSP = {};
}

if (typeof IriSP.jQuery === "undefined" && typeof window.jQuery !== "undefined" && parseFloat(window.jQuery().jquery) >= 1.7) {
    IriSP.jQuery = window.jQuery;
}

if (typeof IriSP._ === "undefined" && typeof window._ !== "undefined" && parseFloat(window._.VERSION) >= 1.4) {
    IriSP._ = window._;
}