this.update();
}
},
- calculateCircumference : function(value){
- return (Math.PI*2)*(value / this.total);
+ calculateCircumference : function(value) {
+ if ( this.total > 0 ) {
+ return (Math.PI*2)*(value / this.total);
+ } else {
+ return 0;
+ }
},
calculateTotal : function(data){
this.total = 0;
defaults : helpers.merge(defaultConfig,{percentageInnerCutout : 0})
});
-}).call(this);
\ No newline at end of file
+}).call(this);