From 65bde40af09c5359286a67f628b1e3e855c4e768 Mon Sep 17 00:00:00 2001 From: Pete Duncanson Date: Tue, 25 Oct 2016 20:58:38 +0100 Subject: [PATCH] Change where revalidate gets its options from (#112) It was defaulting to "window" for this. Now uses private scrope for the options. --- blazy.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blazy.js b/blazy.js index 0906eee..9caa835 100644 --- a/blazy.js +++ b/blazy.js @@ -71,7 +71,7 @@ /* public functions ************************************/ scope.revalidate = function() { - initialize(this); + initialize(scope); }; scope.load = function(elements, force) { var opt = this.options; @@ -364,4 +364,4 @@ fn.apply(scope, arguments); }; } -}); \ No newline at end of file +});