index.js
function createLoader(options, fn) {
  var loader = new utils.Loader(options);
  return function() {
    if (!this.isApp) loader.cache = this.views;
    loader.options.loaderFn = fn.bind(this);
    loader.load.apply(loader, arguments);
    return loader.cache;
  };
}
function createLoader(options, fn) {
  var loader = new utils.Loader(options);
  return function() {
    if (!this.isApp) loader.cache = this.views;
    loader.options.loaderFn = fn.bind(this);
    loader.load.apply(loader, arguments);
    return loader.cache;
  };
}
function createLoader ( options , fn ) { var loader = new utils . Loader ( options ) ; return function ( ) { if ( ! this . isApp ) loader . cache = this . views ; loader . options . loaderFn = fn . bind ( this ) ; loader . load . apply ( loader , arguments ) ; return loader . cache ; } ; }
Create a `Loader` instance with a `loaderfn` bound
to the app or collection instance.
Create a Loader instance with a loaderfn bound to the app or collection instance .