From 0867923281013c00b503c4bc866e103fd5024105 Mon Sep 17 00:00:00 2001 From: Sacha Lifszyc Date: Wed, 14 May 2014 16:44:07 -0300 Subject: [PATCH] Use options.size instead of container' size --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index d187b66..f856ced 100644 --- a/index.js +++ b/index.js @@ -41,7 +41,7 @@ function LoadingLock (el, options) { // set size of spinner from el's size or options // defaults to `25` - this.size = Math.min(this.el.offsetWidth / 5, this.el.offsetHeight / 5) || options.size || 25; + this.size = options.size || Math.min(this.el.offsetWidth / 5, this.el.offsetHeight / 5) || 25; }