benchmarks/scenarios/ember.js
function (selector) {
      var target = _emberViewsSystemJquery.default(selector);

      _emberMetalDebug.assert('You tried to replace in (' + selector + ') but that isn\'t in the DOM', target.length > 0);
      _emberMetalDebug.assert('You cannot replace an existing Ember.View.', !target.is('.ember-view') && !target.parents().is('.ember-view'));

      this.renderer.replaceIn(this, target[0]);

      return this;
    }
function (selector) {
      var target = _emberViewsSystemJquery.default(selector);

      _emberMetalDebug.assert('You tried to replace in (' + selector + ') but that isn\'t in the DOM', target.length > 0);
      _emberMetalDebug.assert('You cannot replace an existing Ember.View.', !target.is('.ember-view') && !target.parents().is('.ember-view'));

      this.renderer.replaceIn(this, target[0]);

      return this;
    }
function ( selector ) { var target = _emberViewsSystemJquery . default ( selector ) ; _emberMetalDebug . assert ( 'You tried to replace in (' + selector + ') but that isn\'t in the DOM' , target . length > 0 ) ; _emberMetalDebug . assert ( 'You cannot replace an existing Ember.View.' , ! target . is ( '.ember-view' ) && ! target . parents ( ) . is ( '.ember-view' ) ) ; this . renderer . replaceIn ( this , target [ 0 ] ) ; return this ; }
Replaces the content of the specified parent element with this view's
element. If the view does not have an HTML representation yet,
the element will be generated automatically.
Note that this method just schedules the view to be appended; the DOM
element will not be appended to the given element until all bindings have
finished synchronizing
@method replaceIn
@param {String|DOMElement|jQuery} target A selector, element, HTML string, or jQuery object
@return {Ember.View} received
@private
Replaces the content of the specified parent element with this view s element . If the view does not have an HTML representation yet the element will be generated automatically . Note that this method just schedules the view to be appended ; the DOM element will not be appended to the given element until all bindings have finished synchronizing