code: function (opts) {
          var name = opts.name,
              animation = opts.animation
  
          this.animations[name] = animation
      }
docs: Add an animation to the cache
  
  @opt {String} name Unique name of the animation
  @opt {cocos.Animcation} animation Animation to cache