versions/0.2.2/oj.js
function(){
        // Do nothing until fully constructed
        if (!this.isConstructed)
          return

        // Some properties call make before construction completes
        var _t = this, ix, model, models, views, out

        // Convert models to views using each
        if ((this.models != null) && (this.each != null)){

          // Get list of models from collection or array
          models = oj.isEvented(this.models) ? this.models.models : this.models

          // Add view item for every model
          views = models.map(function(model){return _t._itemFromModel(model)})

        // Items are already views so just use them
        } else if (this.items != null) {
          views = this.items
        }

        // Render the views
        this.$el.oj(function(){return views.map(function(view){_t._itemElFromItem(view)}) })

        // Indicate to CollectionView the items changed
        this.itemsChanged()
      }
function(){
        // Do nothing until fully constructed
        if (!this.isConstructed)
          return

        // Some properties call make before construction completes
        var _t = this, ix, model, models, views, out

        // Convert models to views using each
        if ((this.models != null) && (this.each != null)){

          // Get list of models from collection or array
          models = oj.isEvented(this.models) ? this.models.models : this.models

          // Add view item for every model
          views = models.map(function(model){return _t._itemFromModel(model)})

        // Items are already views so just use them
        } else if (this.items != null) {
          views = this.items
        }

        // Render the views
        this.$el.oj(function(){return views.map(function(view){_t._itemElFromItem(view)}) })

        // Indicate to CollectionView the items changed
        this.itemsChanged()
      }
function ( ) { // Do nothing until fully constructed if ( ! this . isConstructed ) return // Some properties call make before construction completes var _t = this , ix , model , models , views , out // Convert models to views using each if ( ( this . models != null ) && ( this . each != null ) ) { // Get list of models from collection or array models = oj . isEvented ( this . models ) ? this . models . models : this . models // Add view item for every model views = models . map ( function ( model ) { return _t . _itemFromModel ( model ) } ) // Items are already views so just use them } else if ( this . items != null ) { views = this . items } // Render the views this . $el . oj ( function ( ) { return views . map ( function ( view ) { _t . _itemElFromItem ( view ) } ) } ) // Indicate to CollectionView the items changed this . itemsChanged ( ) }
make: Remake view from model data using each
make : Remake view from model data using each