Permalink
Browse files

fixed caching bug

  • Loading branch information...
minddust committed Jun 13, 2012
1 parent b85ad17 commit 14b0f5de62e2fa19f50ff4bbf6d0f5b5fed7652b
Showing with 7 additions and 7 deletions.
  1. +5 −5 bootstrap-progressbar.js
  2. +2 −2 bootstrap-progressbar.min.js
View
@@ -1,5 +1,5 @@
/* ========================================================
- * bootstrap-progressbar v0.4.3
+ * bootstrap-progressbar v0.4.4
* ========================================================
* Copyright 2012 minddust.com
*
@@ -19,7 +19,6 @@
var Progressbar = function (element, options) {
this.element = $(element);
this.options = $.extend({}, $.fn.progressbar.defaults, options);
- this.transition();
};
Progressbar.prototype = {
@@ -30,9 +29,9 @@
var $this = this.element,
$parent = $this.parent(),
options = this.options,
- percentage = $this.data('percentage'),
- amount_part = $this.data('amount-part'),
- amount_total = $this.data('amount-total'),
+ percentage = $this.attr('data-percentage'),
+ amount_part = $this.attr('data-amount-part'),
+ amount_total = $this.attr('data-amount-total'),
update,
done,
fail;
@@ -130,6 +129,7 @@
if (typeof option === 'string') {
data[option]();
}
+ data.transition();
});
};

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit 14b0f5d

Please sign in to comment.