src/AnimationCache.js
function (opts) {
        var name = opts.name,
            animation = opts.animation

        this.animations[name] = animation
    }
function (opts) {
        var name = opts.name,
            animation = opts.animation

        this.animations[name] = animation
    }
function ( opts ) { var name = opts . name , animation = opts . animation this . animations [ name ] = animation }
Add an animation to the cache

@opt {String} name Unique name of the animation
@opt {cocos.Animcation} animation Animation to cache
Add an animation to the cache