app/assets/javascripts/old/jquery.easy-pie-chart.js
Function easyPieChart
has 145 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.easyPieChart = function(el, options) {
var addScaleLine, animateLine, drawLine, easeInOutQuad, rAF, renderBackground, renderScale, renderTrack,
_this = this;
this.el = el;
Function init
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.init = function() {
var percent, scaleBy;
_this.options = $.extend({}, $.easyPieChart.defaultOptions, options);
percent = parseInt(_this.$el.data('percent'), 10);