Skip to content

Commit

Permalink
[fix] Eve not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed Aug 6, 2019
1 parent 5debfd6 commit 81cff4c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions justgage.js
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@

if (obj.config.counter === true) {
//on each animation frame
eve.on("raphael.anim.frame." + (obj.level.id), function () {
Raphael.eve.on("raphael.anim.frame." + (obj.level.id), function () {
var currentValue = obj.level.attr("pki")[0];
if (obj.config.reverse) {
currentValue = (obj.config.max * 1) + (obj.config.min * 1) - (obj.level.attr("pki")[0] * 1);
Expand All @@ -754,15 +754,15 @@
currentValue = null;
});
//on animation end
eve.on("raphael.anim.finish." + (obj.level.id), function () {
Raphael.eve.on("raphael.anim.finish." + (obj.level.id), function () {
obj.txtValue.attr({
"text": obj.originalValue
});
setDy(obj.txtValue, obj.params.valueFontSize, obj.params.valueY);
});
} else {
//on animation start
eve.on("raphael.anim.start." + (obj.level.id), function () {
Raphael.eve.on("raphael.anim.start." + (obj.level.id), function () {
obj.txtValue.attr({
"text": obj.originalValue
});
Expand Down

0 comments on commit 81cff4c

Please sign in to comment.