diff --git a/packages/velocity/velocity.js b/packages/velocity/velocity.js index 199661c0..e94584bd 100644 --- a/packages/velocity/velocity.js +++ b/packages/velocity/velocity.js @@ -4130,7 +4130,7 @@ }); return Velocity; - }((window.jQuery || window.Zepto || window), window, document); + }((window.jQuery || window.Zepto || window), window, (window ? window.document : undefined)); })); /****************** diff --git a/packages/velocity/velocity.ui.js b/packages/velocity/velocity.ui.js index addb7b97..3ec13dba 100644 --- a/packages/velocity/velocity.ui.js +++ b/packages/velocity/velocity.ui.js @@ -790,5 +790,5 @@ Velocity(sequence[0]); }; - }((window.jQuery || window.Zepto || window), window, document); + }((window.jQuery || window.Zepto || window), window, (window ? window.document : undefined)); }));