app/tutoranimangularjs.js
/**
 * @name firstJsAnimation
 * @desc The first sample animation function
 */
@name firstJsAnimation
@desc The first sample animation function
@name firstJsAnimation @desc The first sample animation function
function firstJsAnimation() {
    var addClassAnimation = function (element, className, done) {
        if (className != 'animationClass') {
            return;
        }
        jQuery(element).slideUp(300, done);
        return function (isCancelled) {
            if (isCancelled) {
                element.stop();
            }
        };
    }
    var removeClassAnimation = function (element, className, done) {
        if (className != 'animationClass') {
            return;
        }
        jQuery(element).slideDown(300, done);
        return function (isCancelled) {
            if (isCancelled) {
                element.stop();
            }
        };
    }
    return {
        addClass: addClassAnimation,
        removeClass: removeClassAnimation
    };
}
function firstJsAnimation ( ) { var addClassAnimation = function ( element , className , done ) { if ( className != 'animationClass' ) { return ; } jQuery ( element ) . slideUp ( 300 , done ) ; return function ( isCancelled ) { if ( isCancelled ) { element . stop ( ) ; } } ; } var removeClassAnimation = function ( element , className , done ) { if ( className != 'animationClass' ) { return ; } jQuery ( element ) . slideDown ( 300 , done ) ; return function ( isCancelled ) { if ( isCancelled ) { element . stop ( ) ; } } ; } return { addClass : addClassAnimation , removeClass : removeClassAnimation } ; }
@name firstJsAnimation
 @desc The first sample animation function
@name firstJsAnimation @desc The first sample animation function
/**
     * @name addClassAnimation
     * @desc The animation function called when a class is removed
     from the element
     * @param element - The element that will have the class
     removed
     * @param className - The name of the class that will be
     removed from the element
     * @param done - Callback function, it must be called to
     finish the animation
     */ //Check if the class added is the one that triggers the animation //Animate to slide up and then call done function // Here is the optional return function that treats completed or cancelled animations /**
     * @name removeClassAnimation
     * @desc The animation function called when a class is
     removed from the element
     * @param element - The element that will have the
     class removed
     * @param className - The name of the class that will be
     removed from the element
     * @param done - Callback function, it must be called to
     finish the animation
     */ //Check if the class removed is the one that triggers the animation //Animate to slide down and then call done function // Here is the optional return function that treats completed or cancelled animations