portfolio/assets/angular/app.js
// Convenience function for encapsulation (remembers passed params)
Convenience function for encapsulation (remembers passed params)
Convenience function for encapsulation ( remembers passed params )
function playSkillsets(params) {
            if (typeof this !== 'object')
                return console.log('playSkillsets() cannot be called directly.');
            else if (!this.objects.length)
                return console.log('.init() and .build() must be called before .play().');
            else if (!this.timeline.getChildren().length)
                return console.log('.build() must be called before .play().');
            this.dom.children.removeClass('click');
            if (angular.isObject(params)) {
                params.onComplete = this.complete;
                params.onCompleteParams = [this];
                this.timeline.params = params;
            }
            if (angular.isObject(this.timeline.params))
                return this.timeline.restart().tweenTo(tween.duration, this.timeline.params);
            else
                return this.timeline.restart().tweenTo(tween.duration);
        }
function playSkillsets ( params ) { if ( typeof this !== 'object' ) return console . log ( 'playSkillsets() cannot be called directly.' ) ; else if ( ! this . objects . length ) return console . log ( '.init() and .build() must be called before .play().' ) ; else if ( ! this . timeline . getChildren ( ) . length ) return console . log ( '.build() must be called before .play().' ) ; this . dom . children . removeClass ( 'click' ) ; if ( angular . isObject ( params ) ) { params . onComplete = this . complete ; params . onCompleteParams = [ this ] ; this . timeline . params = params ; } if ( angular . isObject ( this . timeline . params ) ) return this . timeline . restart ( ) . tweenTo ( tween . duration , this . timeline . params ) ; else return this . timeline . restart ( ) . tweenTo ( tween . duration ) ; }
Convenience function for encapsulation (remembers passed params)
Convenience function for encapsulation ( remembers passed params )
// Remove .click during the animation sequence