public/javascripts/vendor/javascripts/ember.js
function(buffer) {
    var attributeBindings = get(this, 'attributeBindings'),
        attributeValue, elem, type;

    if (!attributeBindings) { return; }

    a_forEach(attributeBindings, function(binding) {
      var split = binding.split(':'),
          property = split[0],
          attributeName = split[1] || property;

      // Create an observer to add/remove/change the attribute if the
      // JavaScript property changes.
      var observer = function() {
        elem = this.$();
        if (!elem) { return; }

        attributeValue = get(this, property);

        Ember.View.applyAttributeBindings(elem, attributeName, attributeValue);
      };

      addObserver(this, property, observer);

      // Determine the current value and add it to the render buffer
      // if necessary.
      attributeValue = get(this, property);
      Ember.View.applyAttributeBindings(buffer, attributeName, attributeValue);
    }, this);
  }
function(buffer) {
    var attributeBindings = get(this, 'attributeBindings'),
        attributeValue, elem, type;

    if (!attributeBindings) { return; }

    a_forEach(attributeBindings, function(binding) {
      var split = binding.split(':'),
          property = split[0],
          attributeName = split[1] || property;

      // Create an observer to add/remove/change the attribute if the
      // JavaScript property changes.
      var observer = function() {
        elem = this.$();
        if (!elem) { return; }

        attributeValue = get(this, property);

        Ember.View.applyAttributeBindings(elem, attributeName, attributeValue);
      };

      addObserver(this, property, observer);

      // Determine the current value and add it to the render buffer
      // if necessary.
      attributeValue = get(this, property);
      Ember.View.applyAttributeBindings(buffer, attributeName, attributeValue);
    }, this);
  }
function ( buffer ) { var attributeBindings = get ( this , 'attributeBindings' ) , attributeValue , elem , type ; if ( ! attributeBindings ) { return ; } a_forEach ( attributeBindings , function ( binding ) { var split = binding . split ( ':' ) , property = split [ 0 ] , attributeName = split [ 1 ] || property ; // Create an observer to add/remove/change the attribute if the // JavaScript property changes. var observer = function ( ) { elem = this . $ ( ) ; if ( ! elem ) { return ; } attributeValue = get ( this , property ) ; Ember . View . applyAttributeBindings ( elem , attributeName , attributeValue ) ; } ; addObserver ( this , property , observer ) ; // Determine the current value and add it to the render buffer // if necessary. attributeValue = get ( this , property ) ; Ember . View . applyAttributeBindings ( buffer , attributeName , attributeValue ) ; } , this ) ; }
Iterates through the view's attribute bindings, sets up observers for each,
then applies the current value of the attributes to the passed render buffer.

@param {Ember.RenderBuffer} buffer
Iterates through the view s attribute bindings sets up observers for each then applies the current value of the attributes to the passed render buffer .