"fallback mode fix"
This commit is contained in:
@@ -124,7 +124,6 @@
|
|||||||
if (!impressSupported) {
|
if (!impressSupported) {
|
||||||
// we can't be sure that `classList` is supported
|
// we can't be sure that `classList` is supported
|
||||||
body.className += " impress-not-supported ";
|
body.className += " impress-not-supported ";
|
||||||
return;
|
|
||||||
} else {
|
} else {
|
||||||
body.classList.remove("impress-not-supported");
|
body.classList.remove("impress-not-supported");
|
||||||
body.classList.add("impress-supported");
|
body.classList.add("impress-supported");
|
||||||
@@ -145,6 +144,10 @@
|
|||||||
|
|
||||||
var impress = window.impress = function ( rootId ) {
|
var impress = window.impress = function ( rootId ) {
|
||||||
|
|
||||||
|
if (!impressSupported) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
rootId = rootId || "impress";
|
rootId = rootId || "impress";
|
||||||
|
|
||||||
// if already initialized just return the API
|
// if already initialized just return the API
|
||||||
@@ -399,6 +402,9 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
impress.supported = impressSupported;
|
||||||
|
|
||||||
})(document, window);
|
})(document, window);
|
||||||
|
|
||||||
// EVENTS
|
// EVENTS
|
||||||
@@ -408,6 +414,11 @@
|
|||||||
|
|
||||||
var impress = window.impress;
|
var impress = window.impress;
|
||||||
|
|
||||||
|
// if impress is not supported don't add any handlers
|
||||||
|
if (!impress.supported) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// throttling function calls, by Remy Sharp
|
// throttling function calls, by Remy Sharp
|
||||||
// http://remysharp.com/2010/07/21/throttling-function-calls/
|
// http://remysharp.com/2010/07/21/throttling-function-calls/
|
||||||
var throttle = function (fn, delay) {
|
var throttle = function (fn, delay) {
|
||||||
|
|||||||
Reference in New Issue
Block a user