mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
nav/tabs wip
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user