Skip to content

Commit

Permalink
added render data.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bret Thaeler committed Sep 21, 2012
1 parent acf5001 commit ad2770a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/app/autoload/view-renderer.common.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -43,7 +43,14 @@ YUI.add('mojito-view-renderer', function(Y) {
*/ */
render: function(data, mojitType, tmpl, adapter, meta, more) { render: function(data, mojitType, tmpl, adapter, meta, more) {
if (adapter.debug) { if (adapter.debug) {
adapter.debug.logOn('Render', {data: data, mojitType: mojitType, tmpl: tmpl}); adapter.debug.logOn('Render', function () {
var ret = {};
ret.mojit_view_id = (data && data.mojit_view_id);
ret.data = data;
ret.mojitType = mojitType;
ret.tmpl = tmpl;
return ret;
});
} }
this._renderer.render(data, mojitType, tmpl, adapter, meta, more); this._renderer.render(data, mojitType, tmpl, adapter, meta, more);
} }
Expand Down

0 comments on commit ad2770a

Please sign in to comment.