Permalink
Browse files

adding stubs for 'animationFrame' module

  • Loading branch information...
1 parent bef8c6a commit 08e0f3b8d296c79949ef5ffb1ec8931aec085c53 @getify committed Aug 22, 2012
Showing with 37 additions and 0 deletions.
  1. +16 −0 animationFrame.h5ive.js
  2. +12 −0 example-animationFrame.html
  3. +9 −0 example-animationFrame.js
View
@@ -0,0 +1,16 @@
+/*! animationFrame.h5ive.js | (c) Kyle Simpson | MIT License: http://getify.mit-license.org */
+
+(function(h5){
+
+ if (!h5) throw new Error("animationFrame.h5ive: core.h5ive required.");
+
+ h5.animationFrame = function(opts) {
+ var publicAPI;
+
+ publicAPI = {
+ };
+
+ return publicAPI;
+ };
+
+})(this.h5);
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html>
+<head>
+<title>Example: h5.animationFrame</title>
+</head>
+<body>
+<h1>Example: h5.animationFrame</h1>
+<script src="core.h5ive.js"></script>
+<script src="animationFrame.h5ive.js"></script>
+<script src="example-animationFrame.js"></script>
+</body>
+</html>
@@ -0,0 +1,9 @@
+var aFrame = h5.animationFrame();
+
+aFrame
+.current(function(){
+ // ...
+})
+.next(function(){
+ // ...
+});

0 comments on commit 08e0f3b

Please sign in to comment.