src/asset_manager/index.js
/**
     * Add new asset/s to the collection. URLs are supposed to be unique
     * @param {string|Object|Array<string>|Array<Object>} asset URL strings or an objects representing the resource.
     * @param {Object} [opts] Options
     * @return {Model}
     * @example
     * // In case of strings, would be interpreted as images
     * assetManager.add('http://img.jpg');
     * assetManager.add(['http://img.jpg', './path/to/img.png']);
     *
     * // Using objects you could indicate the type and other meta informations
     * assetManager.add({
     * 	src: 'http://img.jpg',
     * 	//type: 'image',	//image is default
     * 	height: 300,
     *	width: 200,
     * });
     * assetManager.add([{
     * 	src: 'http://img.jpg',
     * },{
     * 	src: './path/to/img.png',
     * }]);
     */
Add new asset/s to the collection. URLs are supposed to be unique
@param {string|Object|Array|Array} asset URL strings or an objects representing the resource.


Add new asset / s to the collection . URLs are supposed to be unique @param { string|Object|Array|Array } asset URL strings or an objects representing the resource .
add(asset, opts = {}) {
      if (typeof opts.at == 'undefined') {
        opts.at = 0;
      }
      return assets.add(asset, opts);
    }
add ( asset , opts = { } ) { if ( typeof opts . at == 'undefined' ) { opts . at = 0 ; } return assets . add ( asset , opts ) ; }
Add new asset/s to the collection.
Add new asset / s to the collection .
// Put the model at the beginning