diff --git a/spec/support/phantomjs_ext/disable_js_fx.js b/spec/support/phantomjs_ext/disable_js_fx.js index 2b97f0a0f..eae828ac8 100644 --- a/spec/support/phantomjs_ext/disable_js_fx.js +++ b/spec/support/phantomjs_ext/disable_js_fx.js @@ -1,3 +1,5 @@ document.addEventListener("DOMContentLoaded", function() { - $.fx.off = true; + if (typeof $ !== 'undefined') { + $.fx.off = true; + } });