demos/Collage/fabric.js
function() {
      var canvasEl = fabric.document.createElement('canvas');

      if (!canvasEl.getContext && typeof G_vmlCanvasManager != 'undefined') {
        G_vmlCanvasManager.initElement(canvasEl);
      }

      this._render(canvasEl.getContext('2d'));
    }
function() {
      var canvasEl = fabric.document.createElement('canvas');

      if (!canvasEl.getContext && typeof G_vmlCanvasManager != 'undefined') {
        G_vmlCanvasManager.initElement(canvasEl);
      }

      this._render(canvasEl.getContext('2d'));
    }
function ( ) { var canvasEl = fabric . document . createElement ( 'canvas' ) ; if ( ! canvasEl . getContext && typeof G_vmlCanvasManager != 'undefined' ) { G_vmlCanvasManager . initElement ( canvasEl ) ; } this . _render ( canvasEl . getContext ( '2d' ) ) ; }
Renders text object on offscreen canvas, so that it would get dimensions
@private
@method _initDimensions
Renders text object on offscreen canvas so that it would get dimensions