import { Animation , AnimationOptions } from '../animations/animation' ; import { Platform } from '../platform/platform' ; import { ViewController } from '../navigation/view-controller' ; hidden export class Transition extends Animation { _trnsStart : Function ; parent : Transition ; trnsId : number ; constructor ( plt , public enteringView , public leavingView , opts ) { super ( plt , null , opts ) ; } init ( ) { } registerStart ( trnsStart ) { this . _trnsStart = trnsStart ; } start ( ) { this . _trnsStart && this . _trnsStart ( ) ; this . _trnsStart = null ; this . parent && this . parent . start ( ) ; } destroy ( ) { super . destroy ( ) ; this . parent = this . enteringView = this . leavingView = this . _trnsStart = null ; } }