animation refactor

This commit is contained in:
Adam Bradley
2015-04-25 13:51:18 -05:00
parent 4cd979aad6
commit d7d1f4068f
14 changed files with 373 additions and 307 deletions

View File

@@ -1,3 +1,5 @@
/* Forked from Collide.js, MIT License. Julian Shapiro http://twitter.com/shapiro */
import {dom} from 'ionic/util'
@@ -53,6 +55,17 @@ export let Collide = {
/* Set to 1 or 2 (most verbose) to output debug info to console. */
debug: false,
startTick: function() {
/* If the animation tick isn't running, start it.
Collide shuts it off when there are no active calls to process. */
if (Collide.State.isTicking === false) {
Collide.State.isTicking = true;
/* Start the tick loop. */
tick();
}
},
/* initialize element data */
initData: function(element) {
element.$collide = {