Skip to content

Commit

Permalink
Check for null and undefined in getScrollParent
Browse files Browse the repository at this point in the history
Closes #91
  • Loading branch information
Nick Hwang committed Jun 9, 2015
1 parent 4d68702 commit 893b9ce
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tether",
"version": "1.0.1",
"version": "1.0.2",
"homepage": "https://github.hubspot.com/tether",
"authors": [
"Zack Bloom <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tether",
"repo": "HubSpot/tether",
"version": "1.0.1",
"version": "1.0.2",
"description": "A client-side library to make absolutely positioned elements attach to elements in the page efficiently.",
"authors": [
"Zack Bloom <[email protected]>",
Expand Down
4 changes: 2 additions & 2 deletions dist/js/tether.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! tether 1.0.1 */
/*! tether 1.0.2 */

(function(root, factory) {
if (typeof define === 'function' && define.amd) {
Expand Down Expand Up @@ -37,7 +37,7 @@ function getScrollParent(el) {
style = getComputedStyle(parent);
} catch (err) {}

if (typeof style === 'undefined') {
if (typeof style === 'undefined' || style === null) {
return parent;
}

Expand Down
2 changes: 1 addition & 1 deletion dist/js/tether.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tether",
"version": "1.0.1",
"version": "1.0.2",
"description": "A client-side library to make absolutely positioned elements attach to elements in the page efficiently.",
"authors": [
"Zack Bloom <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion src/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function getScrollParent(el) {
style = getComputedStyle(parent);
} catch (err) {}

if (typeof style === 'undefined') {
if (typeof style === 'undefined' || style === null) {
return parent;
}

Expand Down

0 comments on commit 893b9ce

Please sign in to comment.