Skip to content

Commit 893b9ce

Browse files
author
Nick Hwang
committed
Check for null and undefined in getScrollParent
Closes #91
1 parent 4d68702 commit 893b9ce

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tether",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"homepage": "https://github.hubspot.com/tether",
55
"authors": [
66
"Zack Bloom <zackbloom@gmail.com>",

component.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "tether",
33
"repo": "HubSpot/tether",
4-
"version": "1.0.1",
4+
"version": "1.0.2",
55
"description": "A client-side library to make absolutely positioned elements attach to elements in the page efficiently.",
66
"authors": [
77
"Zack Bloom <zackbloom@gmail.com>",

dist/js/tether.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! tether 1.0.1 */
1+
/*! tether 1.0.2 */
22

33
(function(root, factory) {
44
if (typeof define === 'function' && define.amd) {
@@ -37,7 +37,7 @@ function getScrollParent(el) {
3737
style = getComputedStyle(parent);
3838
} catch (err) {}
3939

40-
if (typeof style === 'undefined') {
40+
if (typeof style === 'undefined' || style === null) {
4141
return parent;
4242
}
4343

dist/js/tether.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tether",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "A client-side library to make absolutely positioned elements attach to elements in the page efficiently.",
55
"authors": [
66
"Zack Bloom <zackbloom@gmail.com>",

src/js/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function getScrollParent(el) {
1717
style = getComputedStyle(parent);
1818
} catch (err) {}
1919

20-
if (typeof style === 'undefined') {
20+
if (typeof style === 'undefined' || style === null) {
2121
return parent;
2222
}
2323

0 commit comments

Comments
 (0)