Skip to content

Commit

Permalink
Support some cases where style is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
EnzoMartin committed Apr 14, 2016
1 parent 47646eb commit 25641ae
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion jquery.stickyelement.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
})();

// Check if the browser supports the transition CSS property
var style = win.document.body.style;
var style = (win.document.body || win.document.documentElement).style;
var prop = 'transition';
var supportsTransition = typeof style[prop] == 'string';

Expand Down
2 changes: 1 addition & 1 deletion jquery.stickyelement.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "jquery-sticky-element",
"description": "Simple and lightweight plugin to pin/sticky elements inside a container so they move as the user scrolls",
"version": "1.1.1",
"version": "1.1.2",
"repository": {
"type": "git",
"url": "git@github.com:EnzoMartin/Sticky-Element.git"
Expand Down
2 changes: 1 addition & 1 deletion stickyelement.jquery.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"element",
"scroll"
],
"version": "1.1.1",
"version": "1.1.2",
"author": {
"name": "Enzo Martin",
"email": "enzo.r.martin@gmail.com",
Expand Down

0 comments on commit 25641ae

Please sign in to comment.