From d7d4e1a1b790d4fa1b8be035aee5b67a46ceeaa6 Mon Sep 17 00:00:00 2001 From: Kevin Baker Date: Tue, 22 Jan 2013 14:54:37 -0600 Subject: [PATCH 1/2] Update to antiscroll.js Added the ability to pass the inner class name through the options --- antiscroll.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/antiscroll.js b/antiscroll.js index d91122a..442f7fd 100644 --- a/antiscroll.js +++ b/antiscroll.js @@ -1,4 +1,3 @@ - (function ($) { /** @@ -37,7 +36,11 @@ this.y = false !== this.options.y; this.padding = undefined == this.options.padding ? 2 : this.options.padding; - this.inner = this.el.find('.antiscroll-inner'); + var innerClass = 'antiscroll-inner'; + if(this.options.innerClass) { + innerClass = this.options.innerClass; + } + this.inner = this.el.find('.' + innerClass); this.inner.css({ 'width': '+=' + scrollbarSize() , 'height': '+=' + scrollbarSize() From a74e023ef8866e219c0e551b6fee5887d8e839b0 Mon Sep 17 00:00:00 2001 From: Kevin Baker Date: Tue, 22 Jan 2013 14:55:43 -0600 Subject: [PATCH 2/2] Update antiscroll.js --- antiscroll.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/antiscroll.js b/antiscroll.js index 442f7fd..02d98c2 100644 --- a/antiscroll.js +++ b/antiscroll.js @@ -38,9 +38,9 @@ var innerClass = 'antiscroll-inner'; if(this.options.innerClass) { - innerClass = this.options.innerClass; - } - this.inner = this.el.find('.' + innerClass); + innerClass = this.options.innerClass; + } + this.inner = this.el.find('.' + innerClass); this.inner.css({ 'width': '+=' + scrollbarSize() , 'height': '+=' + scrollbarSize()