Permalink
Browse files

Default data to empty object.

  • Loading branch information...
1 parent 7f7882d commit 8c8e125380dcd8ea7aed9804f035bf1546410a61 @thatismatt committed Jul 5, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/josi/templating.js
View
1 lib/josi/templating.js
@@ -25,6 +25,7 @@ var TemplatingEngine = Class.extend({
},
render: function(data, callback, view, master) {
var self = this;
+ data = data || {};
this.load(view, function(template) {
try {
var rendered = template(data);

0 comments on commit 8c8e125

Please sign in to comment.