;(function ($, window, document, undefined) {
'use strict';
var Pizza = {
version : '0.0.1',
settings : {
donut: false,
donut_inner_ratio: 0.4,
percent_offset: 35,
stroke_color: '#333',
stroke_width: 0,
show_percent: true,
animation_speed: 500,
animation_type: 'elastic'
},
init : function (scope, options) {
var self = this;
this.scope = scope || document.body;
var pies = $('[data-pie-id]', this.scope);
$.extend(true, this.settings, options)
if (pies.length > 0) {
pies.each(function () {
return self.build($(this), options);
});
} else {
this.build($(this.scope), options);
}
this.events();
},