[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/webroot/rsrc/externals/javelin/ext/view/ -> ViewRenderer.js (source)

   1  /**
   2   * @provides javelin-view-renderer
   3   * @requires javelin-install
   4   *           javelin-util
   5   */
   6  
   7  JX.install('ViewRenderer', {
   8    members: {
   9      visit: function(view, children) {
  10        return view.render(children);
  11      }
  12    },
  13    statics: {
  14      render: function(view) {
  15        var renderer = new JX.ViewRenderer();
  16        return view.accept(JX.bind(renderer, renderer.visit));
  17      }
  18    }
  19  });


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1