From 5c4edc9502d282da0b2b5bd1cdec95764dcfa53c Mon Sep 17 00:00:00 2001 From: Chris Adams Date: Fri, 15 Aug 2014 18:05:26 -0400 Subject: [PATCH] =?UTF-8?q?VMM.Library.animate():=20don=E2=80=99t=20churn?= =?UTF-8?q?=20object=20copies?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This avoids declaring an object unless we didn’t receive one --- source/js/Core/Core/VMM.Library.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/js/Core/Core/VMM.Library.js b/source/js/Core/Core/VMM.Library.js index 0191c46..ebcb6c2 100644 --- a/source/js/Core/Core/VMM.Library.js +++ b/source/js/Core/Core/VMM.Library.js @@ -452,8 +452,8 @@ if(typeof VMM != 'undefined') { var _ease = "easein", _que = false, _duration = 1000, - _att = {}; - + _att; + if (duration != null) { if (duration < 1) { _duration = 1; @@ -473,9 +473,9 @@ if(typeof VMM != 'undefined') { if (att != null) { - _att = att + _att = att; } else { - _att = {opacity: 0} + _att = {opacity: 0}; } if (VMM.Browser.features.css.transitions && !('scrollTop' in _att)) {