From 4d5908f40dc7508e40f72bdabfaad32fc69f94f4 Mon Sep 17 00:00:00 2001 From: jlukic Date: Mon, 11 May 2015 17:38:48 -0400 Subject: [PATCH] Remove hidden checks from label --- src/definitions/modules/progress.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/definitions/modules/progress.js b/src/definitions/modules/progress.js index e1371377c..912e3fb18 100644 --- a/src/definitions/modules/progress.js +++ b/src/definitions/modules/progress.js @@ -183,7 +183,7 @@ $.fn.progress = function(parameters) { var value = module.value || 0, total = module.total || 0, - percent = (module.is.visible() && animating) + percent = (animating) ? module.get.displayPercent() : module.percent || 0, left = (module.total > 0) @@ -376,9 +376,7 @@ $.fn.progress = function(parameters) { ; } module.set.barWidth(percent); - if( module.is.visible() ) { - module.set.labelInterval(); - } + module.set.labelInterval(); module.set.labels(); settings.onChange.call(element, percent, module.value, module.total); },