Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed bug when restoring original style if original style was empty

  • Loading branch information...
commit 42fee190cb8c3dae02b0303095215ba3c0a23a37 1 parent 0abe404
Christoph Herold authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 jquery.overscroll.js
View
7 jquery.overscroll.js
@@ -186,8 +186,13 @@
remover: function (target, data) {
return function () {
+ var origStyle = target.data(o.origStyleKey);
+ if (!origStyle) {
+ target.removeAttr('style');
+ } else {
+ target.attr('style', origStyle);
+ }
target
- .attr('style', target.data(o.origStyleKey))
.removeData(o.removerKey)
.removeData(o.origStyleKey)
.off(o.events.wheel, o.wheel)
Please sign in to comment.
Something went wrong with that request. Please try again.