Skip to content

Commit f2557ce

Browse files
committed
Pass 'window' to wrap functions for browserify support
1 parent 2cafa6d commit f2557ce

File tree

7 files changed

+8
-7
lines changed

7 files changed

+8
-7
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
.DS_Store
1+
.DS_Store
2+
node_modules

dist/html5shiv-printshiv.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,4 +517,4 @@
517517
// shiv for print
518518
shivPrint(document);
519519

520-
}(this, document));
520+
}(typeof window !== "undefined" ? window : this, document));

dist/html5shiv-printshiv.min.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.

dist/html5shiv.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,4 +319,4 @@
319319
// shiv the document
320320
shivDocument(document);
321321

322-
}(this, document));
322+
}(typeof window !== "undefined" ? window : this, document));

dist/html5shiv.min.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/html5shiv-printshiv.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,4 +517,4 @@
517517
// shiv for print
518518
shivPrint(document);
519519

520-
}(this, document));
520+
}(typeof window !== "undefined" ? window : this, document));

src/html5shiv.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,4 +319,4 @@
319319
// shiv the document
320320
shivDocument(document);
321321

322-
}(this, document));
322+
}(typeof window !== "undefined" ? window : this, document));

0 commit comments

Comments
 (0)