demo/amd/rjs/output/unified/marionette-build.js
function() {
      if (!this.ui) { return; }
  
      // store the ui hash in _uiBindings so they can be reset later
      // and so re-rendering the view will be able to find the bindings
      if (!this._uiBindings) {
        this._uiBindings = this.ui;
      }
  
      // get the bindings result, as a function or otherwise
      var bindings = _.result(this, '_uiBindings');
  
      // empty the ui so we don't have anything to start with
      this.ui = {};
  
      // bind each of the selectors
      _.each(bindings, function(selector, key) {
        this.ui[key] = this.$(selector);
      }, this);
    }
function() {
      if (!this.ui) { return; }
  
      // store the ui hash in _uiBindings so they can be reset later
      // and so re-rendering the view will be able to find the bindings
      if (!this._uiBindings) {
        this._uiBindings = this.ui;
      }
  
      // get the bindings result, as a function or otherwise
      var bindings = _.result(this, '_uiBindings');
  
      // empty the ui so we don't have anything to start with
      this.ui = {};
  
      // bind each of the selectors
      _.each(bindings, function(selector, key) {
        this.ui[key] = this.$(selector);
      }, this);
    }
function ( ) { if ( ! this . ui ) { return ; } // store the ui hash in _uiBindings so they can be reset later // and so re-rendering the view will be able to find the bindings if ( ! this . _uiBindings ) { this . _uiBindings = this . ui ; } // get the bindings result, as a function or otherwise var bindings = _ . result ( this , '_uiBindings' ) ; // empty the ui so we don't have anything to start with this . ui = { } ; // bind each of the selectors _ . each ( bindings , function ( selector , key ) { this . ui [ key ] = this . $ ( selector ) ; } , this ) ; }
This method binds the elements specified in the "ui" hash inside the view's code with the associated jQuery selectors.
This method binds the elements specified in the ui hash inside the view s code with the associated jQuery selectors .