Improve impress.js version compatibility

This commit is contained in:
astefanutti 2015-06-30 16:18:19 +02:00
parent ccfe36cf5a
commit a2e68be440

View File

@ -8,7 +8,13 @@ Impress.prototype = {
},
isActive : function() {
return typeof impress === "function";
if (typeof impress === "function")
return true;
if (document.getElementById("impress"))
console.log("Impress JS plugin isn't compatible with impress.js version < 0.3.0");
return false;
},
slideCount : function() {