nav/tabs wip

This commit is contained in:
Adam Bradley
2015-06-04 08:22:50 -05:00
parent d592820b3b
commit d1e39a2eaf
5 changed files with 74 additions and 539 deletions

View File

@@ -1,5 +1,5 @@
import {Animation} from '../animations/animation';
import {rafPromise} from '../util/dom';
import {raf, rafPromise} from '../util/dom';
const SHOW_NAVBAR_CSS = 'show-navbar';
const SHOW_VIEW_CSS = 'show-view';
@@ -46,8 +46,12 @@ export class Transition extends Animation {
}
stage() {
return rafPromise();
stage(callback) {
// if no callback was supplied then return a promise
if (!callback) {
return rafPromise();
}
raf(callback);
}