forked from shipshapecode/tether
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check for presence of addEventListener
In some server side rendering environments window is present, presumably for different modules to communicate via global variables. But addEventListener is not present because there's no way for an event to be fired. In such environments tether causes rendering to fail because once it checks for the presence of window, it assumes addEventListener is also present. This commit makes tether more cautious before calling addEventListener.
- Loading branch information
Showing
6 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "tether", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"homepage": "http://github.hubspot.com/tether", | ||
"authors": [ | ||
"Zack Bloom <[email protected]>", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "tether", | ||
"repo": "HubSpot/tether", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "A client-side library to make absolutely positioned elements attach to elements in the page efficiently.", | ||
"authors": [ | ||
"Zack Bloom <[email protected]>", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "tether", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "A client-side library to make absolutely positioned elements attach to elements in the page efficiently.", | ||
"authors": [ | ||
"Zack Bloom <[email protected]>", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters