benchmarks/scenarios/ember.js
function Morph(domHelper, contextualElement) {
    this.domHelper = domHelper;
    // context if content if current content is detached
    this.contextualElement = contextualElement;
    // inclusive range of morph
    // these should be nodeType 1, 3, or 8
    this.firstNode = null;
    this.lastNode = null;

    // flag to force text to setContent to be treated as html
    this.parseTextAsHTML = false;

    // morph list graph
    this.parentMorphList = null;
    this.previousMorph = null;
    this.nextMorph = null;
  }
function Morph(domHelper, contextualElement) {
    this.domHelper = domHelper;
    // context if content if current content is detached
    this.contextualElement = contextualElement;
    // inclusive range of morph
    // these should be nodeType 1, 3, or 8
    this.firstNode = null;
    this.lastNode = null;

    // flag to force text to setContent to be treated as html
    this.parseTextAsHTML = false;

    // morph list graph
    this.parentMorphList = null;
    this.previousMorph = null;
    this.nextMorph = null;
  }
function Morph ( domHelper , contextualElement ) { this . domHelper = domHelper ; // context if content if current content is detached this . contextualElement = contextualElement ; // inclusive range of morph // these should be nodeType 1, 3, or 8 this . firstNode = null ; this . lastNode = null ; // flag to force text to setContent to be treated as html this . parseTextAsHTML = false ; // morph list graph this . parentMorphList = null ; this . previousMorph = null ; this . nextMorph = null ; }
constructor just initializes the fields use one of the static initializers to create a valid morph.
constructor just initializes the fields use one of the static initializers to create a valid morph .