much smarter binding,

auto-binding is only done when the element has binding attributes ('name')
also now an error is throw in there are binding elements but view doesn't have a model
This commit is contained in:
kay.one 2013-04-20 11:59:01 -07:00
commit 979efb8354
3 changed files with 17 additions and 7 deletions

View file

@ -13,7 +13,6 @@ Marionette.TemplateCache.get = function (templateId) {
return function (data) {
try {
//console.log('rendering template ' + templateKey);
return templateFunction(data);
}
catch (error) {