aboutsummaryrefslogtreecommitdiffstats
path: root/src/fx.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/fx.js')
-rw-r--r--src/fx.js14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/fx.js b/src/fx.js
index a0ab8c4..1dd3ecc 100644
--- a/src/fx.js
+++ b/src/fx.js
@@ -288,11 +288,9 @@ SVG.FX = SVG.invent({
// TODO: test this
if(this.situation.loops % 2 == 0 && this.situation.reversing){
- console.log('EVEN LOOPS')
this.situation.reversed = true
}
- console.log('go')
this.at(1)
}
@@ -468,8 +466,6 @@ SVG.FX = SVG.invent({
*/
, step: function(ignoreTime){
- console.log('here we are: step', ignoreTime, this.pos)
-
// convert current time to position
if(!ignoreTime) this.pos = this.timeToPos(+new Date)
@@ -498,30 +494,21 @@ SVG.FX = SVG.invent({
}
}
- console.log('firing during now:', this.active)
-
// fire during callback with position, eased position and current situation as parameter
if(this.active) this.target().fire('during', {pos: this.pos, eased: eased, fx: this, situation: this.situation})
- console.log('fired')
-
// the user may call stop or finish in the during callback
// so make sure that we still have a valid situation
- // FIXME: callbacks not getting called!
if(!this.situation){
return this
}
- console.log('still there?')
-
// apply the actual animation to every property
this.eachAt()
// do final code when situation is finished
if((this.pos == 1 && !this.situation.reversed) || (this.situation.reversed && this.pos == 0)){
- console.log('finish up animation')
-
// stop animation callback
cancelAnimationFrame(this.animationFrame)
@@ -529,7 +516,6 @@ SVG.FX = SVG.invent({
this.target().fire('finished', {fx:this, situation: this.situation})
if(!this.situations.length/* && this.active*/){
- console.log('all finished')
this.target().fire('allfinished')
this.target().off('.fx') // there shouldnt be any binding left, but to make sure...
this.active = false