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

@ -71,8 +71,6 @@ define('app', function () {
console.log('starting application');
NzbDrone.ModelBinder = new Backbone.ModelBinder();
//TODO: move this out of here
Handlebars.registerHelper("formatStatus", function (status, monitored) {
if (!monitored) {