Permalink
Browse files

switched from jQuery's *.attr('data-*') to *.data('*')

  • Loading branch information...
minddust committed Jun 11, 2012
1 parent 08f31ba commit 54ae875f41edca113de9f989d8a088f8cd59f5e0
Showing with 6 additions and 10 deletions.
  1. +4 −4 bootstrap-progressbar.js
  2. +2 −6 bootstrap-progressbar.min.js
View
@@ -1,5 +1,5 @@
/* ========================================================
- * bootstrap-progressbar v0.4.2
+ * bootstrap-progressbar v0.4.3
* ========================================================
* Copyright 2012 minddust.com
*
@@ -30,9 +30,9 @@
var $this = this.element,
$parent = $this.parent(),
options = this.options,
- percentage = $this.attr('data-percentage'),
- amount_part = $this.attr('data-amount-part'),
- amount_total = $this.attr('data-amount-total'),
+ percentage = $this.data('percentage'),
+ amount_part = $this.data('amount-part'),
+ amount_total = $this.data('amount-total'),
update,
done,
fail;

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

Oops, something went wrong.

0 comments on commit 54ae875

Please sign in to comment.