Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 754b949

Browse files
author
Brendan Mullins
authored
Merge pull request #27 from Cytoid/master
Remove global variable mutation
2 parents 43ca0cc + 435e509 commit 754b949

File tree

4 files changed

+5
-11
lines changed

4 files changed

+5
-11
lines changed

‎lib/vue-parallax-js.cjs.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎lib/vue-parallax-js.es.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎lib/vue-parallax-js.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/vue-parallax-js.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1-
// @flow
2-
if (typeof window === 'undefined') {
3-
global.window = null
4-
}
5-
6-
if (typeof document === 'undefined') {
7-
global.document = null
8-
}
1+
const window = global.window
2+
const document = global.document
93

104
const ParallaxJS = function (os) {
115
this.os = os

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /