Пример #1
0
    Signup.prototype.showError = function () {

        this.errorModifier.halt();

        this.errorModifier.setTransform( 
            this.shownPositions.error,
            this.options.errorInTransition
        );

        this.errorModifier.setOpacity( 1, this.options.errorInTransition );

        Time.setTimeout( this.hideError.bind(this), 4000 );

    }
Пример #2
0
    function reflow ( callback ) {
        if( this._dirty ) calcs.call( this );
        for(var i = 0; i < this.modifiers.length; i++) { 

            var mtx = sequentialLayout.call(this, i);

            this.modifiers[i].halt();

            if( this.options.delayTransition ) { 
                Time.setTimeout( 
                    this.modifiers[i].setTransform.bind( this.modifiers[i], mtx, this.options.transition, callback ),
                    i * this.options.delayIncrement);

            } else {
                this.modifiers[i].setTransform(mtx, this.options.transition, callback);
            }
        }        
        this.emit( 'reflow' );
    };