js/libs/ember-1.5.1.js
function(view, fn) {
    view.createElement();
    var viewCollection = view.viewHierarchyCollection();

    viewCollection.trigger('willInsertElement');

    fn.call(view);

    // We transition to `inDOM` if the element exists in the DOM
    var element = view.get('element');
    if (document.body.contains(element)) {
      viewCollection.transitionTo('inDOM', false);
      viewCollection.trigger('didInsertElement');
    }
  }
function(view, fn) {
    view.createElement();
    var viewCollection = view.viewHierarchyCollection();

    viewCollection.trigger('willInsertElement');

    fn.call(view);

    // We transition to `inDOM` if the element exists in the DOM
    var element = view.get('element');
    if (document.body.contains(element)) {
      viewCollection.transitionTo('inDOM', false);
      viewCollection.trigger('didInsertElement');
    }
  }
function ( view , fn ) { view . createElement ( ) ; var viewCollection = view . viewHierarchyCollection ( ) ; viewCollection . trigger ( 'willInsertElement' ) ; fn . call ( view ) ; // We transition to `inDOM` if the element exists in the DOM var element = view . get ( 'element' ) ; if ( document . body . contains ( element ) ) { viewCollection . transitionTo ( 'inDOM' , false ) ; viewCollection . trigger ( 'didInsertElement' ) ; } }
a view leaves the preRender state once its element has been created (createElement).
a view leaves the preRender state once its element has been created ( createElement ) .