Permalink
Browse files

added render data.

  • Loading branch information...
1 parent acf5001 commit ad2770a4d1902bc01d50b35effbe6b576421171e Bret Thaeler committed Sep 21, 2012
Showing with 8 additions and 1 deletion.
  1. +8 −1 lib/app/autoload/view-renderer.common.js
@@ -43,7 +43,14 @@ YUI.add('mojito-view-renderer', function(Y) {
*/
render: function(data, mojitType, tmpl, adapter, meta, more) {
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);
}

0 comments on commit ad2770a

Please sign in to comment.