Skip to content

Commit

Permalink
Store all data attributes in the "data-peity" attribute.
Browse files Browse the repository at this point in the history
  • Loading branch information
benpickles committed Jan 16, 2015
1 parent a7e470d commit 208d9de
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions jquery.peity.js
Expand Up @@ -25,11 +25,7 @@
$.extend(chart.opts, options)
} else {
var defaults = peity.defaults[type]
var data = {}

$.each($this.data(), function(name, value) {
if (name in defaults) data[name] = value
})
, data = $this.data('peity')

chart = new Peity(
$this,
Expand Down

0 comments on commit 208d9de

Please sign in to comment.