From 9136127c2e4b9343fdee25065cd7332b475b11d3 Mon Sep 17 00:00:00 2001 From: Alessandro Molari Date: Thu, 19 Feb 2015 16:27:29 +0100 Subject: [PATCH] Bug fix: use @options instead of options This fixes the bug: ``` Uncaught ReferenceError: options is not defined ``` because there isn't a `options` variable but the `@options` instance field. --- coffeescripts/jquery.nanoscroller.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coffeescripts/jquery.nanoscroller.coffee b/coffeescripts/jquery.nanoscroller.coffee index 0bd7553..421ff5c 100644 --- a/coffeescripts/jquery.nanoscroller.coffee +++ b/coffeescripts/jquery.nanoscroller.coffee @@ -359,7 +359,7 @@ @doc = $ @options.documentContext or document @win = $ @options.windowContext or window @body= @doc.find 'body' - @$content = @$el.children(".#{options.contentClass}") + @$content = @$el.children(".#{@options.contentClass}") @$content.attr 'tabindex', @options.tabIndex or 0 @content = @$content[0]