1. Cat's Eye Technologies
  2. HTML5 Gewgaws

Commits

Cat's Eye Technologies  committed ee2cca8

Two more that I missed.

  • Participants
  • Parent commits ec98a68
  • Branches default

Comments (0)

Files changed (2)

File prairie/prairie.js

View file
  • Ignore whitespace
             shapes[i] = {};
             new_shape(i);
         }
+        this.animation = (new yoob.Animation()).init({ object: this });
         var $this = this;
         img.onload = function() {
-            yoob.setUpProportionalAnimationFrame($this, animCfg);
+            $this.animation.start();
         };
         img.src = imgurl;
     };
 
     this.stop = function() {
-        if (!animCfg.request)
-            return;
-        cancelRequestAnimationFrame(animCfg.request);
-        animCfg.request = undefined;
+        this.animation.stop();
     };
 }

File progression/progression.js

View file
  • Ignore whitespace
       canvas = c;
       ctx = canvas.getContext('2d');
       counter = 1;
-      yoob.setUpProportionalAnimationFrame(this);
+      this.animation = (new yoob.Animation()).init({ object: this });
+      this.animation.start();
     };
 }