Skip to content

Commit

Permalink
Use window.document (#710)
Browse files Browse the repository at this point in the history
* Use window.document

Allows for webpack server rendering.

* Check window exists
  • Loading branch information
alampros authored and Rycochet committed Aug 2, 2020
1 parent ec271f9 commit 9fd88bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/velocity/velocity.js
Original file line number Diff line number Diff line change
Expand Up @@ -4130,7 +4130,7 @@
});

return Velocity;
}((window.jQuery || window.Zepto || window), window, document);
}((window.jQuery || window.Zepto || window), window, (window ? window.document : undefined));
}));

/******************
Expand Down
2 changes: 1 addition & 1 deletion packages/velocity/velocity.ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -790,5 +790,5 @@

Velocity(sequence[0]);
};
}((window.jQuery || window.Zepto || window), window, document);
}((window.jQuery || window.Zepto || window), window, (window ? window.document : undefined));
}));

0 comments on commit 9fd88bf

Please sign in to comment.